Pool
#
createPoolConstructs and validates a Pool
#
getPoolAddressReturns the Ethereum address of the Pool contract
#
poolInvolvesTokenReturns true if the token is in the Pool (i.e. pool.token0 or pool.token1)
#
poolToken0PriceReturns the current mid price of the pool in terms of token0, i.e. the ratio of token1 over token0
#
poolToken1PriceReturns the current mid price of the pool in terms of token1, i.e. the ratio of token0 over token1
#
poolPriceOfReturns the price of the given token in terms of the other token in the pool
#
poolChainIdReturns the chain ID of the tokens in the pool
#
getPoolOutputAmountGiven an input amount of a token, return the computed output amount, and a pool with state updated after the trade
#
getPoolInputAmountGiven a desired output amount of a token, return the computed input amount and a pool with state updated after the trade
#
getPoolTickSpacingReturns the tick spacing of ticks in the pool