Skip to main content
QUICK REVIEW

[Paper Review] Towards a Theory of Maximal Extractable Value I: Constant Function Market Makers

Kshitij Kulkarni, Theo Diamandis|arXiv (Cornell University)|Jul 24, 2022
Blockchain Technology Applications and SecurityComputer Science16 citations
TL;DR

This paper formalizes maximal extractable value (MEV) in constant function market makers (CFMMs), analyzing routing and reordering MEV through game-theoretic and probabilistic frameworks. It establishes that under localized price impact, the worst-case price impact from sandwich attacks grows only logarithmically with trade count, and the price of anarchy for routing MEV is constant, offering theoretical bounds for MEV profitability and mitigation strategies.

ABSTRACT

Maximal Extractable Value (MEV) refers to excess value captured by miners (or validators) from users in a cryptocurrency network. This excess value often comes from reordering users' transactions to maximize fees or from inserting new transactions that front-run users' transactions. One of the most common types of MEV involves a `sandwich attack' against a user trading on a constant function market maker (CFMM), which is a popular class of automated market maker. We analyze game theoretic properties of MEV in CFMMs that we call extit{routing} and extit{reordering} MEV. In the case of routing, we present examples where the existence of MEV both degrades and, counterintuitively, \emph{improves} the quality of routing. We construct an analogue of the price of anarchy for this setting and demonstrate that if the impact of a sandwich attack is localized in a suitable sense, then the price of anarchy is constant. In the case of reordering, we show conditions when the maximum price impact caused by the reordering of sandwich attacks in a sequence of trades, relative to the average price, impact is $O(\log n)$ in the number of user trades. Combined, our results suggest methods that both MEV searchers and CFMM designers can utilize for estimating costs and profits of MEV.

Motivation & Objective

  • To formalize the economic and game-theoretic properties of MEV in CFMMs, particularly routing and reordering MEV.
  • To analyze how MEV affects user price impact and social welfare in decentralized exchanges.
  • To derive theoretical bounds on MEV profitability using smoothness and competitive ratio frameworks.
  • To provide actionable insights for CFMM designers and MEV searchers on estimating costs and profits.
  • To generalize prior empirical and numerical MEV studies with formal, asymptotic theoretical results.

Proposed method

  • Models MEV as a multi-agent game between miners, searchers, and users in CFMMs.
  • Introduces the concept of 'strongly local' trades to bound price impact and enable smoothness analysis.
  • Applies $(\lambda,\mu)$-smoothness results from [Rou15] to derive bounds on the price of anarchy for routing MEV.
  • Uses uniform random permutations over $S_n$ to analyze expected deviation in profit-and-loss (PNL) under reordering.
  • Combines Propositions 5 and 6 to establish a competitive ratio bound via prophet inequality-style analysis.
  • Employs numerical experiments (code available at github.com/tjdiamandis/mev-cfmm) to validate theoretical findings.

Experimental results

Research questions

  • RQ1How does routing MEV affect the efficiency of trade execution in a network of CFMMs?
  • RQ2Under what conditions can sandwich attacks improve social welfare in CFMMs?
  • RQ3What is the worst-case price impact of reordering MEV relative to average impact, as a function of trade count $n$?
  • RQ4Can the price of anarchy for routing MEV be bounded in CFMMs with sufficient liquidity?
  • RQ5How do curvature and liquidity parameters influence the profitability and bounds of sandwich attacks?

Key findings

  • The worst-case price impact from reordering MEV grows as $O(\log n)$ relative to the average impact, under the assumption of strongly local trades.
  • The price of anarchy for routing MEV is constant when the impact of sandwich attacks is localized and sufficient liquidity exists in the network.
  • For strongly local trades, the expected maximum deviation in PNL across permutations is $O(\log n)$, establishing a competitive ratio bound.
  • The expected average deviation in PNL is $\Omega(1)$, indicating that even on average, MEV introduces non-negligible price impact.
  • The cost of feudalism (CoF) for reordering MEV is $O(\log n)$, providing a theoretical upper bound on inefficiency.
  • The results suggest that slippage limits $\eta$ can be calibrated based on CFMM curvature to mitigate MEV impact.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.