Updated 48 days ago

Thorchain/Maya/Chainflip Aggregator

Create a seamless, cross-chain DeFi experience by bridging multiple blockchain ecosystems.

  • Crypto / Web3
  • Ethereum
  • Arbitrum
  • Uniswap
  • Crosschain Infrastructure
  • odos, sushiswap

I've developed a smart contract aggregator for multi-chain token swaps. Our solution integrates Uniswap, Sushiswap, Odos, THORChain, Maya, and Chainflip protocols, allowing users to execute complex, multi-hop swaps across different chains with a single transaction. I also present simple UI to test smart contract functionality and as an example of their implementation.

Key Features:

  1. Multi-DEX Integration: Supports swaps on Uniswap, Sushiswap or both with a non-single path.
  2. Integrates with THORChain, Maya, and Chainflip for cross-chain swaps. In particular, the user can perform Chainflip -> Maya/Thorchain and Maya/Thorchain -> Chainflip swaps with the possibility of trades before and after cross-chain transactions
  3. Split Swaps: Allows splitting trades across multiple on-chain and cross-chain protocols for improved pricing and speed (splitting transactions between Maya/Thorchain/Chainflip and Sushiswap/Uniswap as well as advanced Odos swaps).
  4. Advanced Path Routing: Implements path creation for efficient multi-hop swaps for swap-in and Chainflip swap-out.
  5. Flexible Swap Types: Supports ETH-to-token, token-to-ETH, and token-to-token swaps
  6. Odos Integration: Additionally I Incorporate an Odos router for optimised on-chain token swaps before cross-chain transfers
  7. LP/Broker funding: the ability to fund your LP/Broker account from any token.

This project's goal is to reduce the complexity of cross-chain DeFi interactions, opening up new possibilities for liquidity flow and token accessibility across the blockchain ecosystem.

UI to test contracts (currently all swaps are implemented on Arbitrum even for CMM to save on fees, if desired to perform swap-out or swap-in on ETH the contracts need to be deployed and their addresses updated in the app, or deposit channel requested if on Non-EVM):

https://chainflip-agg-contracts-fmqt.vercel.app/testC

Example Transactions: Swap Odos -> Split on Maya/Chainflip (maya is not whitelisted so it did not finish swap): https://arbiscan.io/tx/0xc24b9de1dca3d77b42de9aaa7ab3445bdcbf780c2597656f989d4dca541158a4

Odos -> ChainflipCMM -> Split Sushi/Uni: in: https://arbiscan.io/tx/0x5c203b06733103c7652edbb854b8102fe20b96efe79efc1fdc62fa96245db56e, out: https://arbiscan.io/tx/0xc24b9de1dca3d77b42de9aaa7ab3445bdcbf780c2597656f989d4dca541158a4