Paper: arXiv 2404.09090
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.
Complexity vs Empirical Score
- Math Complexity: 7.5/10
- Empirical Rigor: 7.0/10
- Quadrant: Holy Grail — high math complexity, high empirical rigor
Why this score: The paper employs advanced mathematical frameworks like mean-field games and Stackelberg equilibrium, which are computationally dense. However, it also demonstrates strong empirical rigor by calibrating models with real Uniswap v3 data and validating simulated dynamics against observed pool behavior.
Research Flowchart
flowchart TD
A["Research Goal: Model & Calibrate LP Behavior<br>in Uniswap v3 & MEV JIT Attacks"] --> B["Key Methodology: Mean-Field Game &<br>Stackelberg Game Theory"]
B --> C["Input: Historical Uniswap Data<br>Calibrates LP Characteristics Distribution"]
C --> D["Computational Process: Simulate<br>Liquidity & Exchange Rate Dynamics"]
D --> E{"Outcome 1: Base Model Validation<br>Consistent with Observed Pool Behavior"}
D --> F["Input: MEV Bot Parameters"]
F --> G["Computational Process: Stackelberg Game<br>LPs vs. JIT Liquidity Attacks"]
G --> H{"Outcome 2: Enhanced Model<br>Accurate Dynamics & Stronger Predictions"}
Cited References (48)
- Infinite Dimensional Analysis: A Hitchhiker’s Guide (2007)
- Improved Price Oracles: Constant Function Market Makers (2020) — link
- An analysis of Uniswap markets (2021) — link
- Liquidity Provision by Automated Market Makers (2020) — link
- Integrals of set-valued functions (1965) — link
- Approximate Purification of Mixed Strategies (1983)
- Nonparametric Adaptive Robust Control Under Model Uncertainty (2022) — link
- Uniswap Liquidity Provision: An Online Learning Approach (2023) — link
and 40 more
- High-Roller Impact: A Large Generalized Game Model of Parimutuel Wagering (2017) — link
- Mean Field Game Approach to Bitcoin Mining (2020) — link
- Advances in Blockchain and Crypto Economics (2023) — link
- The Adoption of Blockchain-based Decentralized Exchanges: A Market Microstructure Analysis of the Automated Market Maker (2021) — link
- Liquidity Provision on Blockchain-based Decentralized Exchanges (2023) — link
- The Paradox Of Just-in-Time Liquidity in Decentralized Exchanges: More Providers Can Sometimes Mean Less Liquidity (2024) — link
- Decentralised Finance and Automated Market Making: Predictable Loss and Optimal Liquidity Provision (2023) — link
- A Machine Learning Approach to Adaptive Robust Utility Maximization and Hedging (2021) — link
- Bitcoin Mining and Electricity Consumption (2022) — link
- A Machine Learning Method for S tackelberg Mean Field Games (2023) — link
- Strategic Liquidity Provision in U niswap v3 (2023) — link
- Credible Decentralized Exchange Design via Verifiable Sequencing Rules (2023) — link
- Liquidity effects of trading frequency (2017) — link
- Endogenous Formation of Limit Order Books: Dynamics Between Trades (2018) — link
- Games with Incomplete Information Played by `` B ayesian" Players, I-III. Part I. T he Basic Model (1967)
- Games with Incomplete Information Played by `` B ayesian" Players, I-III. Part II. B ayesian Equilibrium Points (1968)
- Games with Incomplete Information Played by `` B ayesian" Players, I-III. Part III. T he Basic Probability Distribution of the Game (1968)
- Eliminating Sandwich Attacks with the Help of Game Theory (2022) — link
- Risks and Returns of U niswap V3 Liquidity Providers (2022)
- The Potential of Self-Regulation for Front-Running Prevention on Decentralized Exchanges (2023)
- Behavior of Liquidity Providers in Decentralized Exchanges (2021) — link
- Core and Equilibria of a Large Economy (1974)
- Large population stochastic dynamic games: closed-loop McKean-Vlasov systems and the Nash certainty equivalence principle (2006)
- Monopoly without a Monopolist: An Economic Analysis of the B itcoin Payment System (2021) — link
- Optimal Trading in Automatic Market Makers with Deep Learning (2023) — link
- Disentangling Decentralized Finance (DeFi) Compositions (2023) — link
- Stochastic Differential Mean Field Game Theory (2015) — link
- Mean field games (2007) — link
- On a theorem of S chmeidler (1984) — link
- Non-Cooperative Games (1951)
- Flashbots—Frontrunning the MEV Crisis (2020) — link
- The Conceptual Flaws of Decentralized Automated Market Making (2023) — link
- Computing pure Bayesian-Nash equilibria in games with finite actions and continuous types (2013) — link
- Private Information and Pure-Strategy Equilibria (1982)
- Verallgemeinerung eines in der Statistik ben "o tigten Satzes der Ma \ss theorie (1963) — link
- An Iterative Method of Solving a Game (1951)
- A Mean Field Games Model for Cryptocurrency Mining (2023) — link
- Uniswap v3 Core (2021) — link
- Demystifying Just-in-Time (JIT) Liquidity Attacks on Uniswap V3 (2023) — link
- High-Frequency Trading on Decentralized On-Chain Exchanges (2021) — link
0 of 48 cited works are in the corpus; resolved via arXiv source bundles, Semantic Scholar and OpenAlex. Corpus-wide: 2518 linked papers.