Function: suggestTickTypeForRange()
suggestTickTypeForRange(
low,high,options):TickType|null
Pick the tick width that represents a price range [low, high].
Widest-first (coarsest ticks / lowest precision first): the widest width where
the range still spans at least minBins (and no more than maxBins) ticks is
returned. Because it defaults to minBins: 1, an existing pool's [min, max] maps
to a single tick at its native (widest fitting) precision — so pre-filling an "add
liquidity" form with it keeps the exact range and adds to that same pool instead of
splitting it into finer, brand-new pools. Users can still slide into neighbouring
bins from there. Returns null for a degenerate range (high <= low, a wall /
single-price position) or when no width fits.
Parameters
low
number
high
number
options
Returns
TickType | null
Example
suggestTickTypeForRange(0.9, 1.0); // 'normal' (exactly 1 tick of 0.1 → native grid)
suggestTickTypeForRange(1, 1); // null (wall / single price)