← All projectsGitHub
Prediction-market design

What does a slippage limit give away in a prediction market?

research/market-sandwich

Sandwiching an LMSR verification market: attacker profit is exactly the victim's slippage tolerance times its fair cost, needs capital ≈ εb/(1−p), dies to a fee ≈ v(1−p)/(2b); pro-rata batching keeps 99% of the extraction, random ordering cuts it 3×.

13 tests

What it found

A searcher who buys before and sells after a victim's LMSR trade extracts exactly the victim's slippage tolerance times its fair cost (εC0, error 1.4×10−14 over 216 instances), with a closed-form front-run of about εb/(1−p) shares, so return on capital falls as 1/b. A proportional fee of about v(1−p)/(2b) makes it unprofitable at any tolerance; the victim's optimal tolerance grows only like √log of the stakes; pro-rata batching keeps 0.989–0.999 of the extraction and uniformly random ordering cuts it exactly 3×. Stylised.

A figure from its own output

Figure produced by research/market-sandwich: frontrun_size
market-sandwich/experiments/frontrun_size.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.