← All projectsGitHub
Prediction-market design

What does a constant-product pool concede to informed traders?

research/cfmm-markets

Constant-product AMMs as cost-function prediction markets: worst-case loss C0 never attained, informed-trader profit exactly C0(1−n·GM(π)) (ratio to LMSR → ln n, crossover at n=e), polynomial price tails (p=0.999 costs 3.4× LMSR), exact regret identity, no forgiveness gain under regime switches.

10 tests

What it found

A Uniswap-style pool with invariant ∏ri = C0n is a cost-function prediction market: its worst-case loss is C0 and is never attained, and a trader who moves the price to belief π earns exactly C0(1 − n·GM(π)) with GM the geometric mean, against C0(1 − H(π)/ln n) for LMSR at equal worst-case loss. Near uniform beliefs the ratio is exactly ln n, so the pool is cheaper than LMSR for two outcomes and dearer from three. Its price tails are polynomial, (C0/gap)n, so pushing a binary price to 0.999 costs 3.4× LMSR. As an expert router it satisfies an exact regret identity (settlement term ≤ C0 plus Bregman terms), but under regime switches it shows no advantage over Hedge (negative result). Symmetric pools, no fees. Pure-Python, 10 tests.

A figure from its own output

Figure produced by research/cfmm-markets: push_cost
cfmm-markets/experiments/push_cost.svg, written by the project's own experiment code.

Paper, code and results

More in Prediction-market design

All 9 Prediction-market design projects →

Other research topics

Proper scoring & elicitation28Effort & peer prediction9Verification games & slashing19Detection & tolerances14Markets as routers13Prediction-market design9Paying contributors8Decentralised training systems23Digital twins & sim-to-real164LLM chip design loops40Robot manufacturing loops53Ambient AI assistant46Self-replicating manufacturing34Simulation-first design64Engineered clothing45Task-specific AI accelerators40Algorithmic chip-design loops42Open-source purpose-built robots44The software-engineering loop43Adversarial human imitation41Open-source residential construction41Autonomous multi-angle capture34Sensing, imaging and 3D31Energy supply and dense energy storage39Robot societies among people31Agentic co-design of low-cost robots27Laundry-hanging robots25Machine learning on qualitative data23Robots on the building site27Civilizations & group psychology1History & human sciences1

Produced with AI assistance (Claude). Results are from the code in this repository and are simulated or stylised unless the abstract says otherwise; nothing here implies affiliation with or endorsement by any lab, researcher or company cited. MIT licensed.