The log invariant
Fix a quote asset (the numéraire) and a base asset, write for the price of base in quote, and work throughout in .
The relation
The primitive is the invariant — a relation between reserves alone. A pool holding base and quote runs the log invariant if
for an exposure in quote units and a floor , with . That relation is the curve a swap moves along, and everything on these pages is either a consequence of it or a variant of it. A log position is a claim on holdings that satisfy it.
The holdings follow from the curve
Not the other way round. Take logs of the invariant, , and differentiate along the curve:
The marginal price — quote given up per unit of base received — is therefore
and substituting back fixes the state at any point on the curve:
Two things about that pricing rule are structural rather than cosmetic.
does not appear in it. The marginal price reads only the base reserve; the quote buffer is a state variable the price ignores. Contrast constant product, where carries both reserves, so every quote-side movement repositions the price.
The price is independent of the floor. enters the constant on the right of the invariant but not . Two positions with the same and different floors quote the same price — which is exactly what makes aggregation work.
The floor, and dormancy
At the position is all base and : the floor is where the quote buffer runs out. Below it the position is dormant — it holds base, frozen, earning nothing until price returns. Dormancy is the model's one nonlinearity.
Upward there is no matching boundary: at every finite price, so is an asymptote rather than a reachable state. The position is never fully converted to quote and never needs re-entry. Making that boundary real is what the cap is for.
The reserves are the state; the drawdown is read off them, and is the size.
The three identities
Everything downstream rests on these.
| identity | reading | |
|---|---|---|
| I1 | the marginal-price relation read as a statement about value: the base leg is worth at every price, so is both the size parameter and the quote value of the base holdings | |
| I2 | the quote leg is linear in log-price | |
| I3 | dollar gamma is constant, since |
I1 is why an LP can be asked one question — how much base exposure do you want? — and have the answer be a dollar figure that does not drift with price. I2 is why fees are a path statistic. I3 is why LVR is constant.
Value composition
With :
| quantity | value |
|---|---|
| quote weight | |
| base weight | |
where is the quote gamma. Since , the gamma-to-value ratio equals the base weight — convexity density tracks base share, another face of the constant-LVR property.
Three points on the curve:
- at : , the position is 100% base;
- at : , the position is value-balanced;
- as : asymptotically all quote, with decaying as .
All price-driven variation in the position's value lives in . The base leg does not move.
Where the shape comes from
I3 read backwards is a differential equation. Self-financing rebalancing at the marginal price means , hence and
Imposing constant dollar gamma, , has general solution
The invariant above is the member, with pinned by : the floored form, and the simplest. The remaining freedom is one constant, — and the cap is what happens when it is spent.
Scale-covariance
is homogeneous of degree , so under the form is preserved and the action on state space is
which leaves invariant. Multiplicative rescaling of price is additive translation of . So is not a fundamental parameter — it is a choice of origin for the axis, and floors enter every formula only through the difference .
The trader-facing corollary is that price impact is price-independent: exactly, with no on either side. See Swaps.