SwapMath
Functions
_amountToBinNetOfProtocolFee
function _amountToBinNetOfProtocolFee(uint256 deltaInErc, uint256 feeBasis, uint256 protocolFeeD3)
private
pure
returns (uint256 amount);Name
Type
Description
Name
Type
Description
_remainingBinInputSpaceGivenOutput
function _remainingBinInputSpaceGivenOutput(uint256 binLiquidity, uint256 output, uint256 sqrtPrice, bool tokenAIn)
private
pure
returns (uint256 binAmountIn);Name
Type
Description
Name
Type
Description
computeEndPrice
computeSwapExactIn
Name
Type
Description
Name
Type
Description
computeSwapExactOut
Name
Type
Description
Name
Type
Description
Last updated