Concepts
The mathematics, stated precisely. No contracts appear in this section.
Everything here is a consequence of one relation between reserves. The order below is the order of dependency: the invariant first, then the two extensions it admits, then the four properties that all of them share.
The primitive
- The log invariant — the relation, the holdings it forces, the three identities, and where the shape comes from.
- The cap — the one remaining degree of freedom, and what spending it buys.
- Many bases, one quote — the same invariant on a basket index.
The properties
- Liquidity and LVR — gamma is liquidity; here it is constant, so one parameter sets the exposure. Higher per dollar than constant product, and billed at a price-independent rate that realized variance measures directly.
- Swaps — closed form in one exponential, price impact independent of price (, so the displayed liquidity fixes it exactly), and a fill at the log-midpoint of its own move.
- Fees as a path statistic — income and cost are both statistics of the same path, so an LP's realized edge is one subtraction.
- Positions add — active positions sum to a position, so liquidity is algebraic: combine, split or resize without rebuilding ranges. Uniswap v3 ranges cannot do this.
Reference
- Notation — every symbol used across these pages.
Two facts to carry forward
The two extensions do not compose. A cap is a second boundary on one price; a basket is one boundary on an index of prices. Both spend the same free constant. That is the whole reason the protocol builds two pools rather than one.
Concentration and width are opposite purchases. Homogeneity — every share on one floor — buys width, and is what makes the multi-asset pool possible at all. Heterogeneity — a floor per LP — buys concentration. Neither is a compromise of the other; they are the two ends of a single choice about how many claims a pool divides itself into.