Skip to main content

Function: alignTickUpOrNaN()

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / alignTickUpOrNaN

Function: alignTickUpOrNaN()

alignTickUpOrNaN(tick, spacing): number

Defined in: packages/gswap-sdk/dist/index.d.ts:4253

alignTickUp that answers NaN instead of throwing: the least multiple of spacing that is no less than tick, or NaN for a spacing that is not a positive integer. See alignTickDownOrNaN.

Parameters​

tick​

number

spacing​

number

Returns​

number