underlying pool object
Returns the chain ID of the tokens in the pair.
Returns the current mid price of the pair in terms of token0, i.e. the ratio of reserve1 to reserve0
Returns the current mid price of the pair in terms of token1, i.e. the ratio of reserve0 to reserve1
Returns true if the token is either token0 or token1
to check
Return the price of the given token in terms of the other token in the pair.
token to return price of
Generated using TypeDoc
Represents a swap pair.
A pair consists of two parts:
Unlike UniswapV2, there may be multiple pairs for a given set of two tokens. For example: there could exist both a StableSwap and a CP-AMM pair for two tokens. It is up to the trade calculator to determine