
Uniswap V4 · Reads onchain state
Reads the pool a Uniswap V4 position sits in and the tick range it earns fees between. Both pool tokens come back tagged for downstream use, alongside the fee tier, the tick spacing, and the position's own lower and upper ticks. Reach for it when the position is chosen at runtime and later steps need its facts: the token addresses to approve for an increase or to swap collected fees, 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 · 2