关于「重平衡损耗的速率 σ²/8:手续费与出块间隔怎样给它打折」,《做市损耗与三明治上界》给出的定量结论是什么?
结论:第二章推导 σ²/8 并量化手续费与出块间隔的折扣。
数据口径:书中参数为示意,全部计算由书中程序生成。 本书是非个人化投资风险分析,不构成投资建议,不推荐任何代币、协议或交易;加密资产高风险,可能全部损失。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库
| A. sigma = 0.8 a year; arbitrage loss per year per unit value | ||||
| step | steps/yr | exact | Monte Carlo | sigma^2/8 |
| 1 day | 365 | 0.079991 | 0.080253 | 0.080000 |
| 1 hour | 8,760 | 0.080000 | 0.079917 | 0.080000 |
| 12 sec | 2,628,000 | 0.080000 | 0.079972 | 0.080000 |
| B. LVR budget sigma^2/8 at several volatilities | ||||
| sigma/yr | per year | bp per day | daily sigma | on 1,000,000/yr |
| 0.200 | 0.0050 | 0.137 | 0.0105 | 5,000 |
| 0.400 | 0.0200 | 0.548 | 0.0209 | 20,000 |
| 0.600 | 0.0450 | 1.233 | 0.0314 | 45,000 |
| 0.800 | 0.0800 | 2.192 | 0.0419 | 80,000 |
| 0.955 | 0.1141 | 3.125 | 0.0500 | 114,063 |
| 1.200 | 0.1800 | 4.932 | 0.0628 | 180,000 |
| 1.500 | 0.2812 | 7.705 | 0.0785 | 281,250 |
查看完整验算程序
# Chapter 2. p21: LVR of a constant-product pool is sigma^2 / 8 per unit
# of pool value per unit time.
# Model: the market log price moves by a normal step with mean -s^2/2 and
# variance s^2 = sigma^2 dt (a martingale price, geometric Brownian
# motion). Arbitrage resets the pool each step and earns, per unit of
# pool value, (sqrt(q/p) - 1)^2 / 2. Its exact mean is 1 - exp(-s^2/8),
# which tends to s^2 / 8 as the step shrinks. A fixed-seed Monte Carlo
# checks the exact mean. Volatilities are illustrative annual figures.
import math
import random
def exact_step(s):
return 1.0 - math.exp(-s * s / 8.0)
def mc_step(rng, s, n):
out = []
for _ in range(n):
z = rng.gauss(-s * s / 2.0, s)
out.append((math.exp(z / 2.0) - 1.0) ** 2 / 2.0)
return math.fsum(out) / n
if __name__ == "__main__":
rng = random.Random(20261120)
sigma = 0.8
print("A. sigma = 0.8 a year; arbitrage loss per year per unit value")
print(" step steps/yr exact Monte Carlo sigma^2/8")
for name, k in (("1 day", 365), ("1 hour", 8760),
("12 sec", 2628000)):
s = sigma * math.sqrt(1.0 / k)
ex = exact_step(s) * k
mc = mc_step(rng, s, 200000) * k
print(" {:<9} {:>10,} {:.6f} {:.6f} {:.6f}".format(
name, k, ex, mc, sigma ** 2 / 8))
print("B. LVR budget sigma^2/8 at several volatilities")
print(" sigma/yr per year bp per day daily sigma on 1,000,000/yr")
for sig in (0.2, 0.4, 0.6, 0.8, 0.05 * math.sqrt(365), 1.2, 1.5):
yr = sig ** 2 / 8.0
print(" {:>7.3f} {:>8.4f} {:>10.3f} {:>11.4f} {:>15,.0f}".format(
sig, yr, yr / 365 * 1e4, sig / math.sqrt(365), yr * 1e6))唯一数据源与引用
范雅福(Fan, Y.). (2026). 《集中流动性做市商重平衡损耗(LVR)、链上三明治抢跑边界与去中心化金库风控母典》第 2 章「重平衡损耗的速率 σ²/8:手续费与出块间隔怎样给它打折」(版本 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}
}