Towards a Theory of Maximal Extractable Value I: Constant Function Market Makers

Kshitij Kulkarni, Theo Diamandis, Tarun Chitra
7/24/2022
cs.GTcs.CRq-fin.CP

Official code: tjdiamandis/mev-cfmm (5 stars, Julia, last commit 2023-10-05).

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.

Show full abstract

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 \textit{routing} and \textit{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.

View on arXivView PDF

Code Implementations(1)

51JuliaApr 28, 20233 years ago

Similar Papers

Cite this paper

@article{kulkarni2022towards,
  title  = {Towards a Theory of Maximal Extractable Value I: Constant Function Market Makers},
  author = {Kshitij Kulkarni and Theo Diamandis and Tarun Chitra},
  year   = {2022},
  eprint = {2207.11835},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2207.11835}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.11835.svg)](https://codeofpaper.com/paper/2207.11835)

Discussion