Rainbow Swap

From TON Wiki (En)
Rainbow Swap Logo

Rainbow Swap is a cutting-edge decentralized exchange (DEX) aggregator on TON blockchain, designed to optimize token swaps. The project addresses the issue of fragmented liquidity within TON Ecosystem by combining liquidity pools from various DEXs into a unified route, allowing users to get the best prices with minimal slippage.

How Does Rainbow Swap Work?

1. Liquidity Aggregation

TON Ecosystem includes multiple DEXs (e.g., DeDust.io, STON.fi), each specializing in specific tokens. This results in an uneven distribution of liquidity. Rainbow Swap analyzes available pools, splits the transaction volume into optimal portions, and executes the swap across multiple DEXs in a single transaction. For example, when swapping 100 $TON for $NOT, the algorithm may distribute 61.6 $TON to STON.fi and 38.4 $TON to DeDust.io, increasing the final amount of received tokens by 0.16%.

2. Slippage Minimization

High price impact is a common issue for large trades on DEXs. Rainbow Swap reduces this risk by distributing the trade volume across multiple pools, which is especially beneficial for rare tokens or large transactions.

3. Fee and Gas Cost Optimization

The platform automatically calculates not only the token price but also the gas fees, ensuring the most cost-efficient swap route.

4. Digital Asset Swaps

Rainbow Swap enables fast token swaps using smart contracts, eliminating the need for intermediaries.

5. Trading Tokenized Digital Assets and NFTs

Users can trade tokenized assets and NFTs, expanding the platform’s capabilities beyond simple token swaps.

6. Providing Liquidity

Users can contribute liquidity and earn rewards. This also helps maintain the stability and efficiency of the platform.

7. Cross-Chain Transactions

Rainbow Swap allows token transfers across different blockchains, making it convenient for users operating in multiple networks.

Key Features

  • Support for 2,500+ tokens, including $TON, $USDT, and other assets.
  • NFT trading support – an attractive feature for users interested in digital art and NFTs with real utility.
  • Multi-platform access via a web interface (rainbow.ag), a Telegram bot (@rainbow_swap_bot), and mobile apps (Android/iOS).
  • Low transaction fees.
  • Security. Smart contracts are written in FunC and are open for auditing (GitHub repository).
  • Cross-chain functionality. Support for bridging assets between networks (e.g., Ethereum → TON).
  • Reward programs for liquidity providers, staking, and active participation in Ecosystem development.
  • Integration with other TON projects, such as NFT marketplaces, wallets, and DeFi services.

Advantages of Rainbow Swap

  1. Best Prices. The algorithm compares all available DEXs, including newly partnered platforms.
  2. Time Efficiency. No need to manually check exchange rates across multiple platforms.
  3. Transparency. Before confirming a trade, users see details such as the minimum received amount, fees, and involved liquidity pools.
  4. Code Audits. The smart contract and interface source code are available on GitHub, allowing developers to contribute to project improvements.
  5. Active Support. The team maintains an active Telegram chat (@rainbow_swap_chat) and promptly resolves user issues.
  6. Emergency Fund Withdrawals. The contract allows users to manually withdraw $TON or other tokens in case of unforeseen circumstances.

Project Roadmap

The project aims to:

  • Integrate additional DEXs into TON Ecosystem.
  • Expand the list of supported networks for cross-chain swaps.
  • Implement Flashbots to protect against front-running – a practice where transactions are strategically placed in the queue based on knowledge of upcoming large trades.

Links:

  1. Swap Instructions
  2. Documentation on GitBook
  3. Official Rainbow Swap Website
  4. Rainbow Swap GitHub Repository