An out-of-range concentrated-liquidity position stops earning swap fees because its liquidity leaves the pool’s active liquidity at a boundary tick. The position stays open and retains fees already accrued, but swaps beyond that boundary use other active positions until the price re-enters the range or the LP changes it.
What makes a position inactive?
A position is active only while the pool’s current price lies between its lower and upper bounds. In a tick-based pool, those bounds are discrete tick indexes; the familiar price is derived from the current tick and token ordering. A common tick-price relation is 1.0001tick, before adjusting for token decimals.
When a swap reaches a boundary, the swap program crosses that initialized tick and updates active liquidity by the net liquidity change recorded there. If price moves above a position’s upper tick, or below its lower tick, that position’s liquidity is no longer included in the pool’s active total. The position is still open; it simply no longer supplies liquidity to swaps at that price.
For integrators, the useful state is more than a displayed spot price. Track the pool’s current tick or square-root price, the position’s lower and upper ticks, and the active liquidity after any tick crossing. Tick spacing determines which boundaries are valid and varies by pool configuration; round proposed bounds to valid ticks, then derive the amounts and price range from those rounded values.
That same distinction helps when comparing pools before creating a position. For the separate decision about Byreal pool choice by depth, volume, and fees, use the article’s pool-selection detail; this post focuses on what happens after a position’s range is set.
How does fee accounting stop at the boundary?
Swaps allocate fees to liquidity that is active for the price path they execute. A position’s fee share is therefore based on its liquidity relative to the pool’s active liquidity during each swap segment, not its share of all liquidity deposited across every price range.
Concentrated-liquidity programs commonly maintain global fee-growth accumulators and tick-level fee-growth checkpoints. On a swap, the program calculates the fee for each segment, updates fee growth for the active liquidity, and changes active liquidity when the swap crosses an initialized tick. A position’s claim is calculated from the fee growth inside its bounds since its last checkpoint, scaled by its liquidity; fixed-point formats and rounding rules depend on the program.
When a position goes out of range, its inside-range fee growth stops increasing for subsequent swaps on that side. Fees earned before the crossing remain attributable to it and can generally be collected later, subject to the program’s accounting and claim instructions. If price returns inside the range, the position becomes active again automatically; no new deposit is needed just to resume earning.
The exact boundary deserves care in indexers and quote engines. Tick conventions can make equality and crossing direction matter, and a rounded UI price may appear to equal a boundary while the underlying square-root price is just to one side. Use on-chain tick and square-root-price state, and process tick-crossing updates in swap order rather than inferring activity from a rounded price.
How much fee income can an out-of-range position miss?
Consider an illustrative pool with a 0.30% swap fee, assuming that fee is entirely distributable to LPs for simplicity. While price is inside a position’s range, suppose the position contributes 200,000 liquidity units and total active liquidity is 1,000,000. If $1 million of swaps executes entirely within that active price segment, the pool collects $3,000 in fees and the position’s 20% share is $600.
Now suppose price crosses the upper tick. A later $600,000 of swaps executes above the range, where other positions provide all active liquidity. The first position earns none of the resulting fees, even though it remains deposited. The missed amount is not a permanent account loss of $1,800 by formula: it is the fee share that would have accrued if the position had stayed active, with actual swap paths, liquidity, fee splits, and price movement determining the result.
This example isolates fee allocation; real programs may divert a protocol share, use adaptive fees, or apply rounding at each update. The Uniswap v3 whitepaper is a useful reference for the canonical concentrated-liquidity fee-growth model, while Solana’s core documentation describes atomic transaction execution and transaction fees. An integration should implement the target program’s own state layout and fee rules rather than assume another AMM’s fixed-point arithmetic.
What should an integrator monitor and do next?
Monitor whether price is approaching a boundary, then decide whether to leave the position inactive or reposition it. Narrow ranges can place more liquidity near the current price and increase fee share while active, but they also make inactivity more likely and demand more frequent management.
- Current tick and square-root price, using raw on-chain values.
- Lower and upper ticks after applying the pool’s tick spacing.
- Active liquidity and initialized tick changes as swaps cross boundaries.
- Fee-growth checkpoints and uncollected fees for each position.
Repositioning is an economic decision, not a fee-accounting fix. Closing or reducing liquidity, collecting accrued fees, swapping the resulting token inventory if needed, and opening a new range can involve multiple instructions and market exposure. On Solana, transactions execute atomically, but network base and priority fees still apply; simulate the transaction and estimate compute before submission, since a failed transaction can still incur a network fee.
When building around Byreal, treat the pool program’s tick state and fee accounting as the source of truth, and verify whether the pool uses fixed or adaptive fees before presenting projected returns. Your next step is to calculate the position’s active share from the pool state, then alert or rebalance only when the expected fee capture justifies the transaction cost, inventory change, and monitoring overhead.