Skip to main content
Version: 3.0.0

TickDataProvider

Provides information about ticks

Implemented by#

Methods#

getTick#

getTick(tick: number): Promise<{ liquidityNet: BigintIsh }>

Return information corresponding to a specific tick

Parameters#

NameTypeDescription
ticknumberthe 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

Parameters#

NameTypeDescription
ticknumberthe current tick
ltebooleanwhether the next tick should be lte the current tick
tickSpacingnumberthe tick spacing of the pool

Returns: Promise<[number, boolean]>

Defined in: entities/tickDataProvider.ts:19