What is Smart Router?

The Smart Router v1, currently deployed in BETA, is an essential feature of CLAMM on the AYIN DEX. It is designed to enhance trading efficiency by identifying the most cost-effective trading path within a pair’s v2 and v3 liquidity pools. With the introduction of concentrated liquidity, the Smart Router also considers multiple fee tiers for v3 pools (0.01%, 0.05%, 0.3%, 1%). This advanced routing ensures optimal pricing by splitting trades across same-pair liquidity pools, reducing slippage, and improving user outcomes.

The functionality of the Smart Router will continue to expand as more concentrated liquidity pools are created. Future iterations are planned to support cross-pair hops, further improving trading options and efficiency.


How to use the Smart Router?

Follow these simple steps to take full advantage of the Smart Router on AYIN DEX:

1. Access the AYIN DEX

To access the “Swap” section, first connect your Alephium wallet on the AYIN platform. After successfully connecting, navigate to the main dashboard. Once there, locate the navigation menu at the top of the DApp interface. In the navigation menu, look for an option labeled “Swap.” Click on this option, and you will be directed to the “Swap” area, where you can search and explore the tokens available to trade, execute trades and use the smart router.

2. Select Tokens for Swap

• In the “From” field, choose the token you want to trade.

• In the “To” field, select the token you want to receive.

3. Enter Swap Amount

• Input the amount of the token you wish to swap.

• The platform will calculate and display the estimated amount of the token you will receive based on the current market rate.

4. Enable the Smart Router

• Ensure the Smart Router option is toggled on (enabled by default for most users).

• The Smart Router will automatically analyze all available paths within the same-pair liquidity pools to determine the most cost-effective and efficient trading route.

5. Review Swap Details

Before confirming the swap, carefully check the following:

• Route: The tokens and pools involved in the trade.

• Price Impact: The effect your trade may have on the token price.

• Fees: The total fees associated with the transaction, including pool fees and network fees.

6. Confirm the Swap

• Click “Swap” to initiate the trade.

• Review the transaction summary and approve the swap in your wallet.

• Wait for the transaction to be processed on the blockchain.

7. Verify the Transaction

• Once confirmed, check the transaction details:

• In your connected wallet.

• On the blockchain explorer linked by the platform.


Frequently Asked Questions

Why is the Smart Router important?

The Smart Router enhances user experience by ensuring that trades are executed at the best possible rates, factoring in multiple liquidity pools and fee tiers. This reduces slippage and optimizes pricing for every trade.

Can I manually select the route for my swap?

No, the Smart Router automatically selects the optimal route based on real-time data from v2 and v3 pools, including their fee tiers.

Will cross-pair swaps be supported?

Cross-pair hops are not yet available but are under consideration for future updates to the Smart Router.

How do fee tiers affect my swap?

Fee tiers determine the cost of trading in a particular liquidity pool. The Smart Router takes these tiers into account to find the most efficient pools for your swap, maximizing returns and minimizing fees.

Last updated