Get position
Get position

PancakeSwap Infinity · Reads onchain state

Reads the pool a PancakeSwap Infinity position sits in and the tick range it earns fees between. The CL position manager returns the position's whole pool key, both currencies tagged for later steps beside the fee and the parameters word, and the lower and upper ticks of its range. Reach for it when the position is chosen at runtime and later steps need its facts: the currencies to approve for an increase or to swap collected fees into, or the range to compare against the pool's current tick. Ticks are signed: a comparison against a negative tick needs both sides on the same side of zero.

On other protocols · 3