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#
| Name | Type | Description |
|---|---|---|
tick | number | the target tick |
tickSpacing | number | the spacing of the pool |
Returns: number
Defined in: utils/nearestUsableTick.ts:9