Properties
Readonly address
address: string
Private inverted
inverted: boolean
Methods
getChainId
- getChainId(): undefined | ChainId
Returns undefined | ChainId
Private getDepositAmount0In
- getDepositAmount0In(amount0: BigNumber, updatedReserve0: BigNumber, updatedReserve1: BigNumber): BigNumber
Parameters
amount0: BigNumber
updatedReserve0: BigNumber
updatedReserve1: BigNumber
Returns BigNumber
Private getDepositAmount1In
- getDepositAmount1In(amount1: BigNumber, updatedReserve0: BigNumber, updatedReserve1: BigNumber): BigNumber
Parameters
amount1: BigNumber
updatedReserve0: BigNumber
updatedReserve1: BigNumber
Returns BigNumber
getDepositReservesFraction
- getDepositReservesFraction(firstTokenPrice?: TokenPrice, secondTokenPrice?: TokenPrice): undefined | BigNumber
Parameters
Returns undefined | BigNumber
getEstimatedSwapFee
- getEstimatedSwapFee(input: BigNumber): BigNumber
Parameters
Returns BigNumber
Private getExtraLiquidity
- getExtraLiquidity(amount0: BigNumber, amount1: BigNumber, reserve0: BigNumber, reserve1: BigNumber, liquidity: BigNumber): { extraLiquidity: BigNumber; swapDeposit0Amount: BigNumber; swapDeposit1Amount: BigNumber }
Parameters
amount0: BigNumber
amount1: BigNumber
reserve0: BigNumber
reserve1: BigNumber
liquidity: BigNumber
Returns { extraLiquidity: BigNumber; swapDeposit0Amount: BigNumber; swapDeposit1Amount: BigNumber }
extraLiquidity: BigNumber
swapDeposit0Amount: BigNumber
swapDeposit1Amount: BigNumber
getInitialRatio
- getInitialRatio(): BigNumber
Private getRatio
- getRatio(amount0: BigNumber, amount1: BigNumber, reserve0: BigNumber, reserve1: BigNumber): { ratio: BigNumber; ratio0: BigNumber; ratio1: BigNumber }
Parameters
amount0: BigNumber
amount1: BigNumber
reserve0: BigNumber
reserve1: BigNumber
Returns { ratio: BigNumber; ratio0: BigNumber; ratio1: BigNumber }
ratio: BigNumber
ratio0: BigNumber
ratio1: BigNumber
Private getSwapAmount0In
- getSwapAmount0In(amount1Out: BigNumber): BigNumber
Parameters
Returns BigNumber
Private getSwapAmount0Out
- getSwapAmount0Out(amount1In: BigNumber, updatedReserves?: [BigNumber, BigNumber]): BigNumber
Parameters
amount1In: BigNumber
Optional updatedReserves: [BigNumber, BigNumber]
Returns BigNumber
Private getSwapAmount1In
- getSwapAmount1In(amount0Out: BigNumber): BigNumber
Parameters
Returns BigNumber
Private getSwapAmount1Out
- getSwapAmount1Out(amount0In: BigNumber, updatedReserves?: [BigNumber, BigNumber]): BigNumber
Parameters
amount0In: BigNumber
Optional updatedReserves: [BigNumber, BigNumber]
Returns BigNumber
getToken0Address
- getToken0Address(): string
getToken0Symbol
- getToken0Symbol(): string
getToken1Address
- getToken1Address(): string
getToken1Symbol
- getToken1Symbol(): string
getTotalSupply
- getTotalSupply(): BigNumber
Private initialDeposit
- initialDeposit(ratio: BigNumber): BigNumber[]
Parameters
Returns BigNumber[]
Private swapDeposit0
- swapDeposit0(amount0: BigNumber, updatedReserve0: BigNumber, updatedReserve1: BigNumber): BigNumber[]
Parameters
amount0: BigNumber
updatedReserve0: BigNumber
updatedReserve1: BigNumber
Returns BigNumber[]
Private swapDeposit1
- swapDeposit1(amount1: BigNumber, updatedReserve0: BigNumber, updatedReserve1: BigNumber): BigNumber[]
Parameters
amount1: BigNumber
updatedReserve0: BigNumber
updatedReserve1: BigNumber
Returns BigNumber[]