Value Leakage: The Accounting Problem Hidden Inside AMMs
Uniswap changed the world.
It made liquidity permissionless. It proved that an automated market maker could replace an order book with a simple invariant and still create deep, always-on markets.
But the same mechanism that made Uniswap elegant also introduced a structural cost to LPs.
That cost is usually called impermanent loss or LVR.
At CavalRe, we call the trade-level accounting expression of this cost:
Value Leakage
Value Leakage is the hidden subsidy paid by LPs to traders when an AMM executes inventory changes away from post-trade fair value.
Multiswap removes this subsidy at the accounting source.
Then it uses dynamic weights for extreme capital efficiency.
This article explains the idea.
1. Start with the accounting
Assume a pool begins with:
units of asset .
At the beginning of the period, the price of is:
At the end of the period, the price is:
During the period, the pool buys:
additional units of at effective price:
After the trade, the pool owns:
units of .
Under fair-value accounting, the pool’s income from asset is:
Equivalently:
This separates the period result into two pieces.
The first term:
is the gain or loss on the opening inventory.
The second term:
is the gain or loss on inventory acquired during the period.
That second term is where the AMM story lives.
2. From the AMM’s perspective, buying means price moves down
When an AMM buys asset , the user is selling into the pool.
By the AMM’s own pricing math, this increases the pool’s inventory of and moves the AMM price of down.
So for an AMM buying :
The pool loses value on the inventory it already held:
and it can also lose value immediately on the inventory it just bought:
The total income is still:
The crucial question is:
What is the effective price?
That is where Uniswap and Multiswap diverge.
3. Uniswap: path-average execution
For a constant-product AMM, measured in the LP token / pool-equity numeraire, the AMM’s effective purchase price is exactly the arithmetic midpoint between the pre-trade and post-trade prices:
So Uniswap’s income is:
Simplifying:
Therefore:
Since the AMM is buying on a down move:
the additional term is negative.
Uniswap buys the falling asset above terminal fair value.
That is the subsidy.
4. Multiswap: post-trade fair-value execution
Multiswap uses post-trade pricing:
So Multiswap’s income is:
The acquired-inventory term disappears:
The pool still has price exposure on the inventory it already held.
But the new inventory enters at post-trade fair value.
That means the trade creates no immediate unrealized loss on acquired inventory.
5. Value Leakage
Now compare Uniswap and Multiswap:
Using the expressions above:
and:
So:
Since , this is positive:
We call this amount Value Leakage:
For a Uniswap-style constant-product AMM:
Equivalently:
with:
and:
So:
which simplifies to:
This is the accounting expression of the LP-to-trader subsidy embedded in the curve.
6. Fees try to recover the subsidy
Uniswap charges trading fees.
Those fees are intended to compensate LPs for making markets and absorbing inventory risk.
But the structural accounting is:
LPs are whole only when:
The problem is that the leakage is structural.
Fees are a reimbursement attempt after the subsidy has already been paid.
Multiswap removes the subsidy before reimbursement is needed.
The distinction is simple:
| Mechanism | What happens |
|---|---|
| Uniswap | LPs subsidize traders, fees try to recover the subsidy |
| Multiswap | The subsidy is removed at the accounting source |
7. Post-trade pricing alone is not enough
Post-trade pricing has been tried before.
The usual failure mode is constant weights.
If an AMM uses post-trade pricing but holds weights constant, then it removes Value Leakage by making traders pay the full terminal price impact.
For an AMM buying , the price moves down:
Uniswap gives the trader the path-average price:
Constant-weight post-trade pricing gives the trader the terminal price:
Since:
the trader receives worse execution.
That means constant-weight post-trade pricing can eliminate LP leakage while reducing capital efficiency.
This is why post-trade pricing alone is incomplete.
The breakthrough is:
Post-trade pricing removes Value Leakage. Dynamic weights control the post-trade price.
8. Dynamic weights for extreme capital efficiency
In Multiswap, the post-trade price is not just a passive consequence of reserves.
It depends on post-trade balances and post-trade weights.
The weights are dynamic.
That creates a deterministic control surface for price impact.
Instead of treating every trade as a movement along a fixed curve, Multiswap can ask a better question:
Does this trade improve or worsen the pool’s balance sheet?
The genesis pool introduces a simple and intuitive concept:
Target weights
A target weight defines the pool’s desired composition.
Trades that move the pool toward target weights improve the pool’s balance sheet.
Trades that move the pool away from target weights worsen it.
In the genesis dynamic-weight model:
Trades that move weights toward target weights, without overshooting, receive precisely zero price impact.
That is the capital-efficiency unlock.
9. The genesis price-impact model
Let:
be the relative trade size.
Let:
be the relative trade size required to move the relevant weight to its target.
The price-impact ratio is:
where:
is the stableness parameter.
The genesis pool uses a piecewise definition for .
More explicitly:
In the zero-impact regions:
So:
That is zero price impact.
The intuition is direct:
| Trade type | Effect | Price impact |
|---|---|---|
| Moves toward target | Improves pool composition | Zero |
| Lands exactly on target | Achieves desired composition | Zero |
| Overshoots target | Improves then goes too far | Positive |
| Moves away from target | Worsens pool composition | Positive |
This is the genesis version of dynamic weights.
The broader design space is much larger.
10. Stableness
The final parameter in the genesis model is:
We call this parameter stableness.
Stableness controls how quickly price impact turns on as a trade deviates from the target-rebalancing trade.
Recall the price-impact formula:
Outside the zero-impact region, the genesis model uses:
Define the normalized distance from target:
Then:
That means stableness controls the shape of the price-impact curve around the target.
When is low, price impact turns on quickly.
When is high, price impact stays low near the target and turns on meaningfully only as the trade moves farther away.
This matters a lot.
If:
then, outside the zero-impact region:
so price impact becomes:
That is a very conservative model.
It gives up the main capital-efficiency advantage because price impact activates immediately once a trade leaves the zero-impact corridor.
This was the failed beta design.
The new Multiswap genesis model uses:
With stableness , near-target deviations become dramatically less punitive.
For example:
| Normalized distance from target | ||
|---|---|---|
That is the difference between ordinary price impact and extreme capital efficiency.
Stableness lets Multiswap keep prices stable across a wide range of near-target flow while still charging price impact for trades that move too far away from the pool’s balance-sheet objective.
In plain English:
Stableness controls the pool’s tolerance for near-target flow.
Higher stableness means the pool is more willing to absorb trades near the target with low price impact.
Lower stableness means the pool becomes defensive sooner.
So the tradeoff is:
| Stableness | Behavior |
|---|---|
| Low stableness | More conservative, price impact turns on sooner |
| High stableness | More capital efficient, price impact stays low near target |
| Stableness | Failed beta behavior: price impact activates immediately outside the zero-impact corridor |
| Stableness | New Multiswap behavior: prices remain stable across a wide near-target region |
This is why dynamic weights matter.
Post-trade pricing removes Value Leakage.
Target weights define the pool’s desired balance-sheet direction.
Stableness determines how much low-impact capacity exists around that target.
Together, they produce the core Multiswap mechanism:
Zero Value Leakage. Zero price impact for rebalancing flow. Low price impact for near-target flow.
11. Why this changes the AMM story
Uniswap says:
Bigger trade, more price impact.
Multiswap says:
Flow that improves the pool’s balance sheet can receive zero price impact. Flow that worsens the pool’s balance sheet pays price impact.
That is a fundamentally different market structure.
A rational dealer does not penalize flow that improves inventory.
A rational balance sheet welcomes it.
Multiswap brings that logic onchain.
12. The full mechanism
The Multiswap story has three parts.
1. Post-trade pricing
Multiswap sets:
This removes the acquired-inventory leakage term:
So the trade creates no immediate unrealized loss on acquired inventory.
2. Dynamic weights
The post-trade price depends on deterministic post-trade weights.
That means price impact becomes a design parameter rather than a hardwired consequence of a fixed invariant.
3. Target weights
The genesis pool uses target weights to identify desirable flow.
Trades that move the pool toward target receive zero price impact.
Trades that move the pool away from target pay price impact.
4. Stableness
Stableness determines how wide the low-impact region is around the target.
Higher stableness makes Multiswap more tolerant of near-target flow.
Lower stableness makes the pool more conservative.
Together:
Post-trade pricing removes Value Leakage. Dynamic weights unlock extreme capital efficiency. Target weights define the pool’s desired balance-sheet direction. Stableness controls how much low-impact capacity exists around that target.
13. The punchline
Uniswap LPs subsidize traders through path-average execution.
Fees attempt to claw back that subsidy.
Multiswap removes the subsidy at the accounting source.
Then it uses dynamic weights to control price impact.
The result is a new AMM accounting model:
and a new market structure:
and a new capital-efficiency dial:
This is the convergence of capital markets and capital management.
Multiswap is not just another AMM curve.
It is an onchain balance sheet that trades.
