Implementation of 1inch's Fusion+ protocol on the Cardano blockchain
Fusion+ is an Efficient Cross-Chain Swap DEX Standard for Seamless cross-chain swaps, Secure by design and with Ultimate self-custody. It features Gasless transactions, MEV protection, Smart swap execution, All liquidity in one place, Transparency and compliance, and Learn more. (https://1inch.io/fusion/)
Our project is an implementation of this standard on Cardano.
At this stage, our project consists of a couple of validator scripts written in Aiken and targetted at creating the escrows (eUTXOs) for bidirectional "fusion" swapping according to the protocol described in the wihtepaper. (https://1inch.io/assets/1inch-fusion-plus.pdf) Both scripts check that the proper datum and redeemer are present, that the transaction execution boundary is fully within one of the phases of the protocol, and that the funds are being moved to the proper addresses. One script is one that would be generated for a "maker" willing to swap funds out of the blockchain (Cardano is the source). The other is one that would be generated for a "taker" receiving an order of someone wanting to swap to the blockchain (Cardano is the destination). The only difference between the two being the extra phase of the "public cancellation" on the maker's side.