Pool
@uniswap/v4-sdk / Pool
Defined in: entities/pool.ts:33
Represents a V4 pool
Constructors
new Pool()
new Pool(
currencyA,currencyB,fee,tickSpacing,hooks,sqrtRatioX96,liquidity,tickCurrent,ticks):Pool
Defined in: entities/pool.ts:103
Construct a pool
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
currencyA | Currency | undefined | One of the currencys in the pool |
currencyB | Currency | undefined | The other currency in the pool |
fee | number | undefined | The fee in hundredths of a bips of the input amount of every swap that is collected by the pool |
tickSpacing | number | undefined | The tickSpacing of the pool |
hooks | string | undefined | The address of the hook contract |
sqrtRatioX96 | BigintIsh | undefined | The sqrt of the current ratio of amounts of currency1 to currency0 |
liquidity | BigintIsh | undefined | The current value of in range liquidity |
tickCurrent | number | undefined | The current tick of the pool |
ticks | TickDataProvider | (Tick | TickConstructorArgs)[] |
Returns
Properties
currency0
readonlycurrency0:Currency
Defined in: entities/pool.ts:34
currency1
readonlycurrency1:Currency
Defined in: entities/pool.ts:35
fee
readonlyfee:number
Defined in: entities/pool.ts:36
hooks
readonlyhooks:string
Defined in: entities/pool.ts:39
liquidity
readonlyliquidity:JSBI
Defined in: entities/pool.ts:40
poolId
readonlypoolId:string
Defined in: entities/pool.ts:44
poolKey
readonlypoolKey:PoolKey
Defined in: entities/pool.ts:43
sqrtRatioX96
readonlysqrtRatioX96:JSBI
Defined in: entities/pool.ts:38
tickCurrent
readonlytickCurrent:number
Defined in: entities/pool.ts:41
tickDataProvider
readonlytickDataProvider:TickDataProvider
Defined in: entities/pool.ts:42
tickSpacing
readonlytickSpacing:number
Defined in: entities/pool.ts:37