Skip to content

@gala-chain/apiAPI


API > tickCross

Function: tickCross()

tickCross(tick, tickData, feeGrowthGlobal0, feeGrowthGlobal1): BigNumber

Parameters

tick: number

The destination tick of the transition

tickData: TickDataObj

The mapping containing all tick information for initialized ticks

feeGrowthGlobal0: BigNumber

The all-time global fee growth, per unit of liquidity, in token0

feeGrowthGlobal1: BigNumber

The all-time global fee growth, per unit of liquidity, in token1

Returns

liquidityNet The amount of liquidity added (subtracted) when tick is crossed from left to right (right to left)

Notice

Transitions to next tick as needed by price movement

Source

chain-api/src/utils/dex/tick.helper.ts:194