Liquidity Router
The Liquidity Router combines multiple transactions into one to perform more complex actions.
On-chain Forex swap
The router can combine two Liquidity Pools swaps to exchange jFIAT with jFIAT: the first swap between a jFIAT and its collateral and the second between the collateral and a jFIAT.
Example
For exchanging $10,000 of jEUR for jSGD, the router first swaps $10,000 of jEUR for 9,990 USDC (10 USDC of fee) using a USDC-jEUR pool and then swaps the 9,990 USDC for $9,980 of jSGD (9.99 USD of fee) using a USDC-jSGD pool.
Cross-asset swap
The router can combine Liquidity Pool swaps with AMM swaps to exchange jFIAT with any other asset and vice versa: the first between a jFIAT and its collateral without price impact and the second between the collateral and any other token.
Example
For buying $10,000 of WBTC with jBRL, the router first swaps $10,000 of jBRL for 9,980 USDC (20 USDC of fee) using the USDC-jBRL pool, then swaps the 9,980 USDC for ยฑ$9,980 of WBTC (slippage and price impact occurs).
Since the Liquidity Pool swaps happen without price impact, swaps between a jFIAT and another asset have the same price impact and slippage as swaps between their collateral and the same asset.
Wrapper swap
The router can combine a Wrapper wrap, or an unwrap with an on-chain Forex swap or cross-asset swap.
Example
For exchanging CADC to WBTC, the router first wraps CADC into jCAD using the CADC Wrapper, then swaps the jCAD for WBTC through a cross-asset swap.
For exchanging XSGD for EURe, the router first wraps XSGD into jSGD, then swaps the jSGD for jEUR through an on-chain Forex swap, and finally unwraps the jEUR for EURe using the EURe Wrapper.
Leveraged long and short
The router can combine a Credit Line or money market loan with an on-chain Forex swap or cross-asset swap to open a leveraged long or short position on any jFIAT/TOKEN pair.
Example
To open a EUR/CAD leveraged long position, the router deposits jEUR as collateral into the Credit Line or a money market and borrows jCAD or CADC. Then the router performs an on-chain Forex swap or a wrapper swap to swap CADC or jCAD for jEUR. The router can then repeat the operation to increase the leverage.
Community routers
PicNic
Paraswap
Stableswap
Last updated
Was this helpful?