Skip to content

@gala-chain/apiAPI


API > getFeeGrowthInside

Function: getFeeGrowthInside()

getFeeGrowthInside(tickData, tickLower, tickUpper, tickCurrent, feeGrowthGlobal0, feeGrowthGlobal1): BigNumber[]

Parameters

tickData: TickDataObj

The mapping containing all tick information for initialized ticks

tickLower: number

The lower tick boundary of the position

tickUpper: number

The upper tick boundary of the position

tickCurrent: number

The current tick

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

feeGrowthInside0 The all-time fee growth in token0, per unit of liquidity, inside the position's tick boundaries

feeGrowthInside1 The all-time fee growth in token1, per unit of liquidity, inside the position's tick boundaries

Notice

Retrieves fee growth data

Source

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