Wido Docs
Search…
πŸ’‘
Overview
Multi-chain zaps are provided by a set of Wido Router contracts deployed on each chain. When performing a cross-chain Zap, the Wido Router contract on the source and destination chain work together to execute the transaction.
Wido Router contracts rely on the off-chain Wido backend to find the optimal path with the best conversion rate in and across chains. Wido backend is not just querying DEXs and Bridges but also constructs routes involving direct mints, deposits, and withdrawals through various protocols. This way, we can support cross-chain zaps even for illiquid tokens.

Core Concepts

A Wido Route consists of Steps that encode token travel across contracts, protocols, and chains. Below we explain what Steps and Routes are.

Step

A Step defines a direct way from token A to token B. No intermediate tokens are involved when going from token A to token B.
Example:
  1. 1.
    Depositing ETH into Lido is a Step. It enables direct conversion from ETH -> stETH.
  2. 2.
    Swapping with Uniswap ETH/stETH pool is a step. It enables direct conversion from ETH -> stETH.
  3. 3.
    Wrapping ETH to WETH, then swapping with Uniswap WETH/stETH pool is not a step. It involves WETH as an intermediate token.
Most DEX and Bridge aggregators only look at DEXes to find the best rates for conversion. Wido, on the other hand, can also work with non-liquid tokens. Wido can tap into Lido to see if it is beneficial to mint stETH rather than just swapping it on a DEX.
From the beginning, Wido covers most DEX and Bridge swaps, as well as the tokens from the top protocols, according to DeFi Llama.
To ensure complete coverage of all tokens and protocols, we allow anyone to add new Steps for any token to have the most exhaustive set of paths that support all the tokens and not just the tokens with liquidity pools on DEXes. You can read more about it here.

Route

A route is a series of Steps in a specific order to go from token A to token B.
Wido aims to have the largest repository of Steps, so it can exhaustively search through all possible Routes from token A to token B and find the most efficient route with the least slippage.
​
Next, we will look into how Wido Router is equipped with the capabilities to execute any arbitrary route.
Copy link
On this page
Core Concepts
Step
Route