Skip to main content
Decentralized perpetual exchange with risk-tranched liquidity pools. Senior (low risk), Mezzanine (medium), and Junior (high risk/reward) tranches.

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