Skip to content
log(swap)

Positions add

The result

Over positions that are simultaneously active, parameters map to holdings affinely:

Qi=Li(x−ξi),Ri=Lip⟹L=∑iLi,R=Lp,Q=L (x−ξˉ),ξˉ=∑iLi ξi∑iLi.Q_i = L_i(x - \xi_i), \quad R_i = \frac{L_i}{p} \quad\Longrightarrow\quad L = \sum_i L_i, \quad R = \frac{L}{p}, \quad Q = L\,(x - \bar\xi), \quad \bar\xi = \frac{\sum_i L_i\,\xi_i}{\sum_i L_i}.

A sum of active log positions is a log position, with floor the LL-weighted mean of the floors. Invariant check: R eQ/L=(L/p)ex−ξˉ=L e−ξˉR\,e^{Q/L} = (L/p)e^{x - \bar\xi} = L\,e^{-\bar\xi}. ✓

Two Uniswap v3 ranges do not compose into a Uniswap v3 range. Here they do, and the reason is visible in the pricing rule: p=L/Rp = L/R carries no dependence on the floor, so summing active positions gives Rtotal=La/pR_{\text{total}} = L_a/p and hence

p=LaRtotalp = \frac{L_a}{R_{\text{total}}}

for the pool as a whole, with no dependence on how the floors are distributed.

The one obstruction

Affinity is exact while every position is active. The obstruction to global affinity is the dormancy kink: below its floor a position leaves the sum. So LaL_a is a step function of price,

La(p)=∑i : pmin⁡,i<pLi,L_a(p) = \sum_{i\,:\,p_{\min,i} < p} L_i,

jumping whenever price crosses some LP's floor. That kink is the only nonlinearity in the entire system.

Two corollaries that drive the design

A book of floors prices as one curve

Between crossings, a pool holding many floors prices a swap against a single aggregate (La,ξˉ)(L_a, \bar\xi). Crossing a floor adds or removes that floor's LiL_i and nothing else. This is what lets the C-pool give every LP a private boundary without giving up a single pricing curve.

A coarse ladder spans a continuum

A blend of two adjacent floors is one position at the weighted mean. For a target floor ξˉ∈[ξ1,ξ2]\bar\xi \in [\xi_1, \xi_2] at exposure LL:

L2=L ξˉ−ξ1ξ2−ξ1,L1=L−L2,Q=L (x−ξˉ),L_2 = L\,\frac{\bar\xi - \xi_1}{\xi_2 - \xi_1}, \qquad L_1 = L - L_2, \qquad Q = L\,(x - \bar\xi),

with QQ identical to the single-position requirement. So a discrete set of floors spans a continuum exactly, and ladder density is an interface parameter, not a precision parameter.

Fee accounting collapses to the class

Aggregation carries no per-holder path dependence. The only question a fee accumulator has to answer is how much of the total variation happened while your position was active — and if a share class shares one floor, that question has one answer for the whole class.

So the accumulator lives on the class, not on the holder, and per-holder state collapses. That is why positions are fungible tokens rather than NFTs: Uniswap v3 needs a feeGrowthInside snapshot per NFT because ranges are individually addressed and do not compose. Here the class is the aggregation unit.

Taken to its limit — one class for the whole pool — the accumulator disappears entirely and the floor itself becomes the fee state. That limit is the F-pool.