Free lesson · DeFi models
LVR and the price of stale inventory
Open interactive lessonPractice calculationsExplore labs
Start with the idea
A pool can trade at prices that lag new market information. Loss-versus-rebalancing measures the difference from a benchmark that holds the same changing exposure but rebalances at reference prices.
Symbols, units & horizon
- D: benchmark-minus-pool USD difference before fees over the declared path
- V_rebalance: value of specified same-exposure reference rebalancing portfolio USD
- V_pool: corresponding pool value USD
- F: collected fees USD
- C: other costs USD
- A: net fee-minus-difference USD
When and why to use this
Design an LP research ledger that isolates fee income from exposure and execution disadvantage.
A pool can trade at prices that lag new market information. Loss-versus-rebalancing measures the difference from a benchmark that holds the same changing exposure but rebalances at reference prices.
Do not confuse three quantities: market exposure from inventory, difference versus holding initial tokens, and adverse execution relative to rebalancing. The recent research checkpoint motivates this separation, but the example here is a discrete teaching comparison rather than the paper’s continuous-time result.
Define benchmark and pool values at identical timestamps and include the same external cash flows. Fees can offset part of the difference but are not automatically sufficient.
LVR and the price of stale inventory
- Specify a same-exposure reference execution/rebalancing rule in advance.
- Subtract pool value from reference value using matching initial capital and flows.
- Add fees to the pool comparison and subtract other costs.
Reference value $10,030, pool value $10,000, fees $40, costs $8: difference=$30 and net relative contribution=40−30−8=$2.
Apply it in a strategy
- Design an LP research ledger that isolates fee income from exposure and execution disadvantage.
- Record the input timestamp, executable quantity, currency and horizon. Reconcile the result with a cash-flow or state table.
- Stress this failure condition: An arbitrary buy-and-hold comparison is not LVR; a reproducible same-exposure benchmark is necessary.
Research deliverable
Build and explain a lvr and the price of stale inventory worksheet. Design an LP research ledger that isolates fee income from exposure and execution disadvantage.
Evidence boundary: Synthetic arithmetic and scenarios illustrate mechanics. They are not historical returns, a paper replication, or evidence of an executable edge. Research sources and their access limitations are recorded at the end of this module.
Python implementation
Self-contained teaching example. Python 3.10+; dependencies and input conventions are shown in the code and notation. Run in your own Python environment.
# Python 3.10+; standard library unless NumPy is imported below.
# Inputs and outputs use the units defined in this lesson. Synthetic teaching example.
def rebalancing_comparison(reference,pool,fees,costs):
if min(reference,pool,fees,costs)<0: raise ValueError("Nonnegative values required")
difference=reference-pool
return difference,fees-difference-costs
print(rebalancing_comparison(10030,10000,40,8))Continue learning
DeFi: AMMs, Liquidity Provision and Lending — all lessons- Constant-product swaps with an input fee
- LP inventory after price changes
- LP value versus holding the original tokens
- Concentrated liquidity and range boundaries
- LVR and the price of stale inventory
- Lending utilization and rate response
- Collateral health factor and correlated shocks
- Liquidation incentives after execution costs
Quantitative finance and development glossary · Python resources and libraries · Research sources and limitations