TickDataProvider
Provides information about ticks
#
Implemented by#
Methods#
getTick▸ getTick(tick
: number): Promise<{ liquidityNet
: BigintIsh }>
Return information corresponding to a specific tick
#
ParametersName | Type | Description |
---|---|---|
tick | number | the tick to load |
Returns: Promise<{ liquidityNet
: BigintIsh }>
Defined in: entities/tickDataProvider.ts:11
#
nextInitializedTickWithinOneWord▸ nextInitializedTickWithinOneWord(tick
: number, lte
: boolean, tickSpacing
: number): Promise<[number, boolean]>
Return the next tick that is initialized within a single word
#
ParametersName | Type | Description |
---|---|---|
tick | number | the current tick |
lte | boolean | whether the next tick should be lte the current tick |
tickSpacing | number | the tick spacing of the pool |
Returns: Promise<[number, boolean]>
Defined in: entities/tickDataProvider.ts:19