Introducing Smart Routing Beta

More trading options, Better Prices, Less effort

The team is very glad to announce the first version of the Smart Routing feature!

Smart Routing, also known as ‘Auto Router’ [1] within the ecosystem, can be defined as the ability to find better prices for traders in the Ref Finance app. This includes splitting the trade across multiple pools at once.

With the Parallel Swap, the solution was already determining the best swap allocation across pools for the same pair. With the Smart Routing, the solution can now determine the best path by using an intermediary pool, taking advantage of liquidity in different pairs.

Beta Version

While the team is already working on the next version of the Smart Routing with Giddy and Dave, creators of the Parallel Swap algorithm and winning team of the OpenDeFi Hackathon [2], the current Beta version:

  • Enables an efficient execution
  • Explores liquidity/intermediary pools only when no split across pools for the same pair can’t be found
  • Leverages the StableSwap tri-pool (USDC, DAI, USDT) as a potential intermediary candidate

At the moment, only one hop/intermediary pool is considered to find the optimal path.

At the Frontend level, the optimal path found by the solution is visible in the ‘Details’ section of the Swap.

Testnet — Smart Routing Example (using the StableSwap pool as a hop)
Testnet — Smart Routing Example (using wNEAR as a bridge token)

Happy trading!

By Didier, Product Manager




About Ref Finance

Ref Finance is a community-led, multi-purpose Decentralized Finance (DeFi) platform built on NEAR Protocol.

Ref takes full advantage of NEAR’s low fees ($0.005 per swap) and one-to-two second finality.

Using the Rainbow Bridge (NEAR <> ETH), traders can utilize the billions of dollars in ERC-20-compliant assets from Ethereum, and eventually, from any chain (BSC, Polygon/Matic, Cosmos/IBC, and others) on NEAR.

Ref Finance’s first product is an automated market maker (AMM). It is similar to Uniswap, with a few changes (not limited to):

  • Multiple pools in a single contract
  • Ability to trade across pools atomically in a single transaction
  • Customizable swap fee per pool, giving to LPs the possibility to charge higher fees for volatile tokens

Make sure you are following us on Twitter for the latest news and announcements, and do make sure you join our Discord or Telegram for deeper levels of engagement with our Team and Community!


Ref Finance does not endorse or promote any of the projects, platforms or cryptocurrencies mentioned in this blogpost. Any descriptions of functionality and services provided are for information only. Ref Finance is not responsible for any loss of funds or other damages caused as a result of using the projects, platforms or cryptocurrencies described above.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ref Finance

Ref Finance is the starting point to the NEAR Ecosystem with a leading AMM & a synchronous #DeFi Shard.