IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2207.11835.html
   My bibliography  Save this paper

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

Author

Listed:
  • Kshitij Kulkarni
  • Theo Diamandis
  • Tarun Chitra

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 \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.

Suggested Citation

  • Kshitij Kulkarni & Theo Diamandis & Tarun Chitra, 2022. "Towards a Theory of Maximal Extractable Value I: Constant Function Market Makers," Papers 2207.11835, arXiv.org, revised Apr 2023.
  • Handle: RePEc:arx:papers:2207.11835
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2207.11835
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Guillermo Angeris & Tarun Chitra, 2020. "Improved Price Oracles: Constant Function Market Makers," Papers 2003.10001, arXiv.org, revised Jun 2020.
    2. Guillermo Angeris & Tarun Chitra & Alex Evans & Stephen Boyd, 2022. "Optimal Routing for Constant Function Market Makers," Papers 2204.05238, arXiv.org.
    3. Saeed Alaei & Ali Makhdoumi & Azarakhsh Malekian & Rad Niazadeh, 2022. "Descending Price Auctions with Bounded Number of Price Levels and Batched Prophet Inequality," Papers 2203.01384, arXiv.org.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Elijah Fox & Mallesh Pai & Max Resnick, 2023. "Censorship Resistance in On-Chain Auctions," Papers 2301.13321, arXiv.org, revised Jun 2023.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Philippe Bergault & Louis Bertucci & David Bouba & Olivier Gu'eant, 2022. "Automated Market Makers: Mean-Variance Analysis of LPs Payoffs and Design of Pricing Functions," Papers 2212.00336, arXiv.org, revised Nov 2023.
    2. Arman Abgaryan & Utkarsh Sharma, 2023. "Dynamic Function Market Maker," Papers 2307.13624, arXiv.org.
    3. Matheus V. X. Ferreira & David C. Parkes, 2022. "Credible Decentralized Exchange Design via Verifiable Sequencing Rules," Papers 2209.15569, arXiv.org, revised Apr 2023.
    4. Estelle Sterrett & Waylon Jepsen & Evan Kim, 2022. "Replicating Portfolios: Constructing Permissionless Derivatives," Papers 2205.09890, arXiv.org, revised Jun 2022.
    5. Guillermo Angeris & Tarun Chitra & Theo Diamandis & Alex Evans & Kshitij Kulkarni, 2023. "The Geometry of Constant Function Market Makers," Papers 2308.08066, arXiv.org.
    6. Zhimeng Yang & Ariah Klages-Mundt & Lewis Gudgeon, 2023. "Oracle Counterpoint: Relationships between On-chain and Off-chain Market Data," Papers 2303.16331, arXiv.org, revised Jul 2023.
    7. Matthias Nadler & Felix Bekemeier & Fabian Schar, 2022. "DeFi Risk Transfer: Towards A Fully Decentralized Insurance Protocol," Papers 2212.10308, arXiv.org.
    8. Raphael Auer & Bernhard Haslhofer & Stefan Kitzler & Pietro Saggese & Friedhelm Victor, 2024. "The technology of decentralized finance (DeFi)," Digital Finance, Springer, vol. 6(1), pages 55-95, March.
    9. Maxim Bichuch & Zachary Feinstein, 2022. "Axioms for Automated Market Makers: A Mathematical Framework in FinTech and Decentralized Finance," Papers 2210.01227, arXiv.org, revised Sep 2024.
    10. Dev Churiwala & Bhaskar Krishnamachari, 2022. "QLAMMP: A Q-Learning Agent for Optimizing Fees on Automated Market Making Protocols," Papers 2211.14977, arXiv.org.
    11. Sam M. Werner & Daniel Perez & Lewis Gudgeon & Ariah Klages-Mundt & Dominik Harz & William J. Knottenbelt, 2021. "SoK: Decentralized Finance (DeFi)," Papers 2101.08778, arXiv.org, revised Sep 2022.
    12. Guillermo Angeris & Alex Evans & Tarun Chitra, 2021. "Replicating Monotonic Payoffs Without Oracles," Papers 2111.13740, arXiv.org.
    13. Tarun Chitra & Alex Evans, 2020. "Why Stake When You Can Borrow?," Papers 2006.11156, arXiv.org.
    14. Tristan Lim, 2022. "Predictive Crypto-Asset Automated Market Making Architecture for Decentralized Finance using Deep Reinforcement Learning," Papers 2211.01346, arXiv.org, revised Jan 2023.
    15. Nassib Boueri, 2021. "G3M Impermanent Loss Dynamics," Papers 2108.06593, arXiv.org, revised Jun 2022.
    16. Peplluis R. Esteva & Andrés El-Fakdi & Alberto Ballesteros-Rodríguez, 2023. "Invoice Discounting Using Kelly Criterion by Automated Market Makers-like Implementations," Mathematics, MDPI, vol. 11(7), pages 1-37, March.
    17. Nicola Cantarutti & Alex Harker & Carter Woetzel, 2023. "Silkswap: An asymmetric automated market maker model for stablecoins," Papers 2302.07822, arXiv.org.
    18. Daniel Kirste & Niclas Kannengie{ss}er & Ricky Lamberty & Ali Sunyaev, 2023. "How Automated Market Makers Approach the Thin Market Problem in Cryptoeconomic Systems," Papers 2309.12818, arXiv.org, revised Sep 2023.
    19. Niccol`o Bardoscia & Alessandro Nodari, 2023. "Liquidity Providers Greeks and Impermanent Gain," Papers 2302.11942, arXiv.org, revised Mar 2023.
    20. Michael Darlin & Nikolaos Papadis & Leandros Tassiulas, 2020. "Optimal Bidding Strategy for Maker Auctions," Papers 2009.07086, arXiv.org, revised May 2021.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2207.11835. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.