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

DEX Specs: A Mean Field Approach to DeFi Currency Exchanges

Author

Listed:
  • Erhan Bayraktar
  • Asaf Cohen
  • April Nellis

Abstract

We investigate the behavior of liquidity providers (LPs) by modeling a decentralized cryptocurrency exchange (DEX) based on Uniswap v3. LPs with heterogeneous characteristics choose optimal liquidity positions subject to uncertainty regarding the size of exogenous incoming transactions and the prices of assets in the wider market. They engage in a game among themselves, and the resulting liquidity distribution determines the exchange rate dynamics and potential arbitrage opportunities of the pool. We calibrate the distribution of LP characteristics based on Uniswap data and the equilibrium strategy resulting from this mean-field game produces pool exchange rate dynamics and liquidity evolution consistent with observed pool behavior. We subsequently introduce Maximal Extractable Value (MEV) bots who perform Just-In-Time (JIT) liquidity attacks, and develop a Stackelberg game between LPs and bots. This addition results in more accurate simulated pool exchange rate dynamics and stronger predictive power regarding the evolution of the pool liquidity distribution.

Suggested Citation

  • Erhan Bayraktar & Asaf Cohen & April Nellis, 2024. "DEX Specs: A Mean Field Approach to DeFi Currency Exchanges," Papers 2404.09090, arXiv.org.
  • Handle: RePEc:arx:papers:2404.09090
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Guillermo Angeris & Hsien-Tang Kao & Rei Chiang & Charlie Noyes & Tarun Chitra, 2019. "An analysis of Uniswap markets," Papers 1911.03380, arXiv.org, revised Feb 2021.
    2. Lioba Heimbach & Ye Wang & Roger Wattenhofer, 2021. "Behavior of Liquidity Providers in Decentralized Exchanges," Papers 2105.13822, arXiv.org, revised Oct 2021.
    3. Agostino Capponi & Ruizhe Jia & Brian Zhu, 2023. "The Paradox Of Just-in-Time Liquidity in Decentralized Exchanges: More Providers Can Sometimes Mean Less Liquidity," Papers 2311.18164, arXiv.org, revised Feb 2024.
    4. 'Alvaro Cartea & Fayc{c}al Drissi & Marcello Monga, 2023. "Decentralised Finance and Automated Market Making: Predictable Loss and Optimal Liquidity Provision," Papers 2309.08431, arXiv.org, revised Jun 2024.
    5. John C. Harsanyi, 1968. "Games with Incomplete Information Played by "Bayesian" Players Part II. Bayesian Equilibrium Points," Management Science, INFORMS, vol. 14(5), pages 320-334, January.
    6. Sebastian Jaimungal & Yuri F. Saporito & Max O. Souza & Yuri Thamsten, 2023. "Optimal Trading in Automatic Market Makers with Deep Learning," Papers 2304.02180, arXiv.org.
    7. Roy Radner & Robert W. Rosenthal, 1982. "Private Information and Pure-Strategy Equilibria," Mathematics of Operations Research, INFORMS, vol. 7(3), pages 401-409, August.
    8. Erhan Bayraktar & Alexander Munk, 2016. "High-Roller Impact: A Large Generalized Game Model of Parimutuel Wagering," Papers 1605.03653, arXiv.org, revised Mar 2017.
    Full references (including those not matched with items on IDEAS)

    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. Robin Fritsch & Andrea Canidio, 2024. "Measuring Arbitrage Losses and Profitability of AMM Liquidity," Papers 2404.05803, arXiv.org, revised Apr 2024.
    2. Marcello Monga, 2024. "Automated Market Making and Decentralized Finance," Papers 2407.16885, arXiv.org.
    3. Ping Sun & Elena Parilina, 2021. "Network Formation with Asymmetric Players and Chance Moves," Mathematics, MDPI, vol. 9(8), pages 1-16, April.
    4. Martin Meier & Burkhard Schipper, 2014. "Bayesian games with unawareness and unawareness perfection," Economic Theory, Springer;Society for the Advancement of Economic Theory (SAET), vol. 56(2), pages 219-249, June.
    5. Huseyin Cavusoglu & Srinivasan Raghunathan, 2004. "Configuration of Detection Software: A Comparison of Decision and Game Theory Approaches," Decision Analysis, INFORMS, vol. 1(3), pages 131-148, September.
    6. Annetta Ho & Cosmin Cazan & Andrew Schrumm, 2024. "The Ecology of Automated Market Makers," Discussion Papers 2024-12, Bank of Canada.
    7. Lyudmila Kovalchuk & Volodymyr Kostanda & Oleksandr Marukhnenko & Nataliia Kuchynska & Yuliia Marchuk, 2023. "The Method of Choosing Parameters for Margin Trading Protocols in the Constant Product Model," Mathematics, MDPI, vol. 11(19), pages 1-20, October.
    8. Giovanni Paolo Crespi & Davide Radi & Matteo Rocca, 2017. "Robust games: theory and application to a Cournot duopoly model," Decisions in Economics and Finance, Springer;Associazione per la Matematica, vol. 40(1), pages 177-198, November.
    9. van Damme, E.E.C., 1995. "Game theory : The next stage," Other publications TiSEM 7779b0f9-bef5-45c7-ae6b-7, Tilburg University, School of Economics and Management.
    10. Andrew M. Colman & Briony D. Pulford, 2015. "Psychology of Game Playing: Introduction to a Special Issue," Games, MDPI, vol. 6(4), pages 1-8, December.
    11. Qipeng Sun & Yuqi He & Yongjie Wang & Fei Ma, 2019. "Evolutionary Game between Government and Ride-Hailing Platform: Evidence from China," Discrete Dynamics in Nature and Society, Hindawi, vol. 2019, pages 1-14, January.
    12. Erhan Bayraktar & Matteo Burzoni, 2020. "On the quasi-sure superhedging duality with frictions," Finance and Stochastics, Springer, vol. 24(1), pages 249-275, January.
    13. Benjamin Patrick Evans & Mikhail Prokopenko, 2021. "Bounded rationality for relaxing best response and mutual consistency: The Quantal Hierarchy model of decision-making," Papers 2106.15844, arXiv.org, revised Mar 2023.
    14. Özalp Özer & Yanchong Zheng & Kay-Yut Chen, 2011. "Trust in Forecast Information Sharing," Management Science, INFORMS, vol. 57(6), pages 1111-1137, June.
    15. Mark A. Satterthwaite, 1979. "On the Scope of Stockholder Unanimity Theorems," Discussion Papers 368, Northwestern University, Center for Mathematical Studies in Economics and Management Science.
    16. Yang, Jian & Qi, Xiangtong, 2013. "The nonatomic supermodular game," Games and Economic Behavior, Elsevier, vol. 82(C), pages 609-620.
    17. Sundström, David, 2016. "On Specification and Inference in the Econometrics of Public Procurement," Umeå Economic Studies 931, Umeå University, Department of Economics.
    18. Scandizzo, Pasquale L. & Ventura, Marco, 2010. "Sharing risk through concession contracts," European Journal of Operational Research, Elsevier, vol. 207(1), pages 363-370, November.
    19. Ghislain Herman Demeze-Jouatsa & Roland Pongou & Jean-Baptiste Tondji, 2024. "Justice, inclusion, and incentives," Journal of Theoretical Politics, , vol. 36(2), pages 101-131, April.
    20. Fernando Ordóñez & Nicolás E. Stier-Moses, 2010. "Wardrop Equilibria with Risk-Averse Users," Transportation Science, INFORMS, vol. 44(1), pages 63-86, February.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:2404.09090. 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.