ILBLegacyRouter

Required interface of LB Legacy Router contract

LiquidityParameters

struct LiquidityParameters {
  contract IERC20 tokenX;
  contract IERC20 tokenY;
  uint256 binStep;
  uint256 amountX;
  uint256 amountY;
  uint256 amountXMin;
  uint256 amountYMin;
  uint256 activeIdDesired;
  uint256 idSlippage;
  int256[] deltaIds;
  uint256[] distributionX;
  uint256[] distributionY;
  address to;
  uint256 deadline;
}

factory

oldFactory

wavax

getIdFromPrice

getPriceFromId

getSwapIn

getSwapOut

createLBPair

addLiquidity

addLiquidityAVAX

removeLiquidity

removeLiquidityAVAX

swapExactTokensForTokens

swapExactTokensForAVAX

swapExactAVAXForTokens

swapTokensForExactTokens

swapTokensForExactAVAX

swapAVAXForExactTokens

swapExactTokensForTokensSupportingFeeOnTransferTokens

swapExactTokensForAVAXSupportingFeeOnTransferTokens

swapExactAVAXForTokensSupportingFeeOnTransferTokens

sweep

sweepLBToken

Last updated