Class: Pool
Represents a V3 pool
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
new Pool(tokenA
, tokenB
, fee
, sqrtRatioX96
, liquidity
, tickCurrent
, ticks?
)
Construct a pool
Parameters
Name | Type | Default value | Description |
---|---|---|---|
tokenA | Token | undefined | One of the tokens in the pool |
tokenB | Token | undefined | The other token in the pool |
fee | FeeAmount | undefined | The fee in hundredths of a bips of the input amount of every swap that is collected by the pool |
sqrtRatioX96 | BigintIsh | undefined | The sqrt of the current ratio of amounts of token1 to token0 |
liquidity | BigintIsh | undefined | The current value of in range liquidity |
tickCurrent | number | undefined | The current tick of the pool |
ticks | TickDataProvider | (Tick | TickConstructorArgs )[] | NO_TICK_DATA_PROVIDER_DEFAULT | The current state of the pool ticks or a data provider that can return tick data |
Defined in
Properties
_token0Price
Private,Optional
_token0Price: Price <Token, Token>
Defined in
_token1Price
Private,Optional
_token1Price: Price <Token, Token>