Cross-DEX

We use native cross-DEX swaps whenever possible, relying on original liquidity provider smart contracts. If that's not an option, we use the Rainbow Routing Wallet.

Rainbow Routing Wallet

This smart contract acts as a middleman, allowing seamless swaps between different DEXes in a single transaction. It also lets users withdraw TON or jettons, just like a Jetton Wallet contract, to ensure asset security (no losses have occurred).

Events diagram:

Smart contract are written using FunC language. All code could be found in contracts folder.

To build the Rainbow Routing Wallet smart contract you need to clone the repository and run

yarn build:contract

Last updated