Only a lower bound on trade size can prevent profitable sandwich attacks
Any leakage about a transaction’s size beyond a certain lower-bound threshold enables profitable sandwich attacks on a fee-free constant-product AMM
People & policy arXiv 25 Sep 2026 Theory Theory
Published as “How Much Must a Private Mempool Hide? Exact Leakage Thresholds for Sandwich Attacks”
Why it matters
A private mempool can safely disclose any upper bound on a transaction’s size, but must hide the lower bound unless it is below the explicit λc threshold, otherwise guaranteed-profit sandwich attacks become possible.
Summary
The paper shows that for a fee-free constant-product AMM, a sandwich attack is guaranteed profitable for every victim size consistent with a leaked interval exactly when the leaked lower bound l exceeds an explicit threshold λc that depends only on the pool reserve, slippage tolerance and execution cost. The optimal robust front-run is the largest admissible size, and its worst-case gross profit has a closed form τl(X+l)/(X+τl). If execution costs are positive, revealing any upper bound on order size is safe as long as the lower bound stays below λc; otherwise a guaranteed-profit sandwich exists. The results are analytical, not empirical, and apply to a single victim order under the constant-product invariant.
What they found 1
- A robustly admissible sandwich bundle with positive net payoff for every consistent victim size exists iff the leaked lower bound exceeds λc.
“Equivalently, this holds if and only if l> λc := -(X -c) + q (X -c)2 + 4cX τ”
Caveats 5
- When execution cost c = 0, a signal that reveals no positive lower bound still permits a robust sandwich (a0 > 0) and thus universal profitability, contradicting the claim that any lower-bound leakage is required.
- Even if universal robust sandwiches are ruled out (c > 0, perfect hiding), attacks that are profitable in expectation can still occur (Corollary 4.4).
- The exact cancellations behind (12), however, are specific to the constant-product invariant; stableswap-style or piecewise invariants are likely to preserve only the monotonicity backbone, not the same closed-form threshold.
- The single-victim assumption is what makes the robust feasibility region one-dimensional.
- The present paper studies one hidden victim order; extensions to multiple victims and cross-venue interactions are left as open problems.
What’s new here 4
- Derives an exact, distribution-free leakage threshold λc for sandwich profitability under interval leakage.
- Shows that only the leaked lower endpoint matters for robust admissibility and optimal attack size.
- Analyzes a first-price execution-rights auction and proves that the auctioneer captures the entire expected net rent when the threshold is exceeded.
- Provides closed-form expressions for admissible front-run size and worst-case profit in the constant-product AMM model.