Skip to main content

ISwap

Functions#

getA#

function getA(
) external returns (uint256)

getAllowlist#

function getAllowlist(
) external returns (contract IAllowlist)

getToken#

function getToken(
) external returns (contract IERC20)

getTokenIndex#

function getTokenIndex(
) external returns (uint8)

getTokenBalance#

function getTokenBalance(
) external returns (uint256)

getVirtualPrice#

function getVirtualPrice(
) external returns (uint256)

isGuarded#

function isGuarded(
) external returns (bool)

calculateSwap#

function calculateSwap(
) external returns (uint256)

calculateTokenAmount#

function calculateTokenAmount(
) external returns (uint256)

calculateRemoveLiquidity#

function calculateRemoveLiquidity(
) external returns (uint256[])

calculateRemoveLiquidityOneToken#

function calculateRemoveLiquidityOneToken(
) external returns (uint256 availableTokenAmount)

initialize#

function initialize(
) external

swap#

function swap(
) external returns (uint256)

addLiquidity#

function addLiquidity(
) external returns (uint256)

removeLiquidity#

function removeLiquidity(
) external returns (uint256[])

removeLiquidityOneToken#

function removeLiquidityOneToken(
) external returns (uint256)

removeLiquidityImbalance#

function removeLiquidityImbalance(
) external returns (uint256)

updateUserWithdrawFee#

function updateUserWithdrawFee(
) external