跳到主要内容

Interface: TickDataProvider

Provides information about ticks

Implemented by

Table of contents

Methods

Methods

getTick

getTick(tick): 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, lte, tickSpacing): 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