Skip to main content
Version: 3.0.0

nearestUsableTick

@uniswap/v3-sdk / Exports / utils/nearestUsableTick / nearestUsableTick

nearestUsableTick

nearestUsableTick(tick: number, tickSpacing: number): number

Returns the closest tick that is nearest a given tick and usable for the given tick spacing

Parameters#

NameTypeDescription
ticknumberthe target tick
tickSpacingnumberthe spacing of the pool

Returns: number

Defined in: utils/nearestUsableTick.ts:9