Skip to content

@gala-chain/apiAPI


API > spaceTick

Function: spaceTick()

spaceTick(tick, tickSpacing): number

Parameters

tick: number

tick to be spaced

tickSpacing: number

tick spacing that should be considered while spacing a tick

Returns

spaced tick

Notice

it will ensure the tick spacing

Source

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