What it offers
- addLiquidity: Add liquidity to a specific risk tranche
- removeLiquidity: Remove liquidity from a tranche
Notes
- Risk-tranched pools: Senior (low risk, lower yield), Mezzanine (medium), Junior (high risk, higher yield)
- Each tranche has its own LP token address
- Approve input token to liquidityPool before adding liquidity
- minLpAmount/minOut provide slippage protection
Its names in a program
On BNB Chain,LevelFinance is a namespace: its contracts need no import.
Deployments
ABI
LiquidityPoolABI
import LiquidityPoolABI from "./protocols/level-finance/LiquidityPoolABI.json"; Speaks for: liquidityPool.
addLiquidity(address tranche, address token, uint256 amountIn, uint256 minLpAmount, address to)removeLiquidity(address tranche, address tokenOut, uint256 lpAmount, uint256 minOut, address to)swap(address tokenIn, address tokenOut, uint256 minOut, address to, bytes extradata)
Next steps
- Protocols: the other protocols, by what they do.
- Protocols and tokens: calling a contract by its namespace, or through its ABI.
- Glossary: the words these pages use, in plain terms.
