关于「恒定乘积的凹性:做市就是持续卖出伽马」,《做市损耗与三明治上界》给出的定量结论是什么?

结论:第一章由价值函数 V = 2L√p 说明做市等于卖出伽马。

数据口径:书中参数为示意,全部计算由书中程序生成。 本书是非个人化投资风险分析,不构成投资建议,不推荐任何代币、协议或交易;加密资产高风险,可能全部损失。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库

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.255,000 6,250 -0.2000 -0.2500
0.57,071 7,500 -0.0572 -0.2500
0.88,944 9,000 -0.0062 -0.2500
0.99,487 9,500 -0.0014 -0.2500
1.010,000 10,000 0.0000 -0.2500
1.110,488 10,500 -0.0011 -0.2500
1.2511,180 11,250 -0.0062 -0.2500
2.014,142 15,000 -0.0572 -0.2500
4.020,000 25,000 -0.2000 -0.2500
B. Jensen: average of V at 1-d and 1+d versus V(1)
d0.1: mean 9,987.46 V(1) 10,000.00 gap -12.54
d0.3: mean 9,884.18 V(1) 10,000.00 gap -115.82
d0.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
r1.5: -0.0202 r = 1/1.5: -0.0202
r3.0: -0.1340 r = 1/3.0: -0.1340
查看完整验算程序
# 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))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《集中流动性做市商重平衡损耗(LVR)、链上三明治抢跑边界与去中心化金库风控母典》第 1 章「恒定乘积的凹性:做市就是持续卖出伽马」(版本 1.0.0). 5D Library. DOI 待发布

DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 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}
}

本书其他章节结论