What does LVR, Sandwich Bounds and Vault Risk conclude, in numbers, about “The Concavity of Constant Product: Market Making Is Selling Gamma”?
Answer: Chapter 1 uses the value function V = 2L√p to show that market making is selling gamma.
Scope of the numbers: Parameters are illustrative and all calculations are generated by the book's programs. This is general investment risk analysis, not investment advice; it recommends no token, protocol or trade, and crypto-assets are high risk and can be lost in full.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python only
| A. pool versus hold after the price moves from 1 to r | |
| r pool V hold H V/H - 1 p^2 V''/V | |
| 0.25 | 5,000 6,250 -0.2000 -0.2500 |
| 0.5 | 7,071 7,500 -0.0572 -0.2500 |
| 0.8 | 8,944 9,000 -0.0062 -0.2500 |
| 0.9 | 9,487 9,500 -0.0014 -0.2500 |
| 1.0 | 10,000 10,000 0.0000 -0.2500 |
| 1.1 | 10,488 10,500 -0.0011 -0.2500 |
| 1.25 | 11,180 11,250 -0.0062 -0.2500 |
| 2.0 | 14,142 15,000 -0.0572 -0.2500 |
| 4.0 | 20,000 25,000 -0.2000 -0.2500 |
| B. Jensen: average of V at 1-d and 1+d versus V(1) | |
| d | 0.1: mean 9,987.46 V(1) 10,000.00 gap -12.54 |
| d | 0.3: mean 9,884.18 V(1) 10,000.00 gap -115.82 |
| d | 0.5: mean 9,659.26 V(1) 10,000.00 gap -340.74 |
| C. the loss V/H - 1 is the same for r and 1/r | |
| r | 1.5: -0.0202 r = 1/1.5: -0.0202 |
| r | 3.0: -0.1340 r = 1/3.0: -0.1340 |
Show the full program
# Chapter 1. p11: the constant-product value function is concave.
# Model: a pool holding x units of a risky asset X and y units of the
# numeraire Y keeps x * y = L^2. At price p (Y per X) arbitrage sets
# x = L / sqrt(p), y = L * sqrt(p), so the pool is worth V(p) = 2 L sqrt(p).
# A holder who simply kept the first deposit is worth H(p) = p x0 + y0.
# Deposit 10,000 at p0 = 1 (illustrative numbers, not a market quote).
import math
V0 = 10000.0
L = V0 / 2.0 # V(1) = 2 L
def pool_value(p):
return 2.0 * L * math.sqrt(p)
def hold_value(p):
return (V0 / 2.0) * p + V0 / 2.0
def dollar_gamma(p, h=1e-4):
# p^2 V''(p) by a central difference, as a share of V(p)
d2 = (pool_value(p + h) - 2 * pool_value(p) + pool_value(p - h)) / h ** 2
return p * p * d2 / pool_value(p)
if __name__ == "__main__":
print("A. pool versus hold after the price moves from 1 to r")
print(" r pool V hold H V/H - 1 p^2 V''/V")
for r in (0.25, 0.5, 0.8, 0.9, 1.0, 1.1, 1.25, 2.0, 4.0):
v, h = pool_value(r), hold_value(r)
print(" {:>4} {:>8,.0f} {:>8,.0f} {:>8.4f} {:>8.4f}".format(
r, v, h, v / h - 1.0, dollar_gamma(r)))
print("B. Jensen: average of V at 1-d and 1+d versus V(1)")
for d in (0.1, 0.3, 0.5):
avg = math.fsum([pool_value(1 - d), pool_value(1 + d)]) / 2.0
print(" d = {:.1f}: mean {:>9,.2f} V(1) {:>9,.2f} gap {:>7.2f}"
.format(d, avg, pool_value(1.0), avg - pool_value(1.0)))
print("C. the loss V/H - 1 is the same for r and 1/r")
for r in (1.5, 3.0):
a = pool_value(r) / hold_value(r) - 1
b = pool_value(1 / r) / hold_value(1 / r) - 1
print(" r = {:.1f}: {:.4f} r = 1/{:.1f}: {:.4f}".format(
r, a, r, b))Single source and citation
Fan, Y. (2026). Concentrated-Liquidity Loss-Versus-Rebalancing, On-Chain Sandwich Bounds and Decentralised Vault Risk Control (Version 1.0.0), Chapter 1: The Concavity of Constant Product: Market Making Is Selling Gamma. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-344 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026344,
author = {Fan, Yafu},
title = {Concentrated-Liquidity Loss-Versus-Rebalancing, On-Chain Sandwich Bounds and Decentralised Vault Risk Control},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 2 · The σ²/8 Rate of Loss-Versus-Rebalancing, Discounted by Fees and Block Times
- Chapter 3 · Concentrated Liquidity: the Amplification Factor, the Range Value Function and the Odds of Leaving the Range
- Chapter 4 · Fees Against LVR: Break-Even Volatility, Measurement Noise and the Crowded Range
- Chapter 5 · Bounding the Sandwich: Your Slippage Tolerance Is the Largest Loss You Offer
- Chapter 6 · Pricing Smart-Contract Tail Risk with Poisson Jumps, Kelly Position Caps and Vault Rebalancing Bands
- Chapter 7 · Classical Sources: the Guanzi on Light-and-Heavy Price Levelling and Bagehot's Lombard Street
- Chapter 8 · Closing the Loop: a Monthly On-Chain Position Check-up, the Distilled Tool and a Pre-registered Refutation