Skip to content

@gala-chain/apiAPI


API > tickSpacingToMaxLiquidityPerTick

Function: tickSpacingToMaxLiquidityPerTick()

tickSpacingToMaxLiquidityPerTick(tickSpacing): BigNumber

Parameters

tickSpacing: number

The amount of required tick separation, realized in multiples of tickSpacing e.g., a tickSpacing of 3 requires ticks to be initialized every 3rd tick i.e., ..., -6, -3, 0, 3, 6, ...

Returns

The max liquidity per tick

Notice

Derives max liquidity per tick from given tick spacing

Dev

Executed within the pool constructor

Source

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