Paper: arXiv 2509.06510
Authors: Philippe Bergault, Sébastien Bieber, Leandro Sánchez-Betancourt
Abstract
We study the problem of optimal liquidity withdrawal for a representative liquidity provider (LP) in an automated market maker (AMM). LPs earn fees from trading activity but are exposed to impermanent loss (IL) due to price fluctuations. While existing work has focused on static provision and exogenous exit strategies, we characterise the optimal exit time as the solution to a stochastic control problem with an endogenous stopping time. Mathematically, the LP’s value function is shown to satisfy a Hamilton-Jacobi-Bellman quasi-variational inequality, for which we establish uniqueness in the viscosity sense. To solve the problem numerically, we develop two complementary approaches: a Euler scheme based on operator splitting and a Longstaff-Schwartz regression method. Calibrated simulations highlight how the LP’s optimal exit strategy depends on the oracle price volatility, fee levels, and the behaviour of arbitrageurs and noise traders. Our results show that while arbitrage generates both fees and IL, the LP’s optimal decision balances these opposing effects based on the pool state variables and price misalignments. Lastly, we find the optimal fee level for the representative LP when they play the exit strategy we derived. This work contributes to a deeper understanding of dynamic liquidity provision in AMMs and provides insights into the sustainability of passive LP strategies under different market regimes.
Complexity vs Empirical Score
- Math Complexity: 9.0/10
- Empirical Rigor: 7.0/10
- Quadrant: Holy Grail — high math complexity, high empirical rigor
Why this score: The paper presents advanced mathematical theory, including Hamilton-Jacobi-Bellman quasi-variational inequalities and viscosity solutions, indicating high math complexity. It also demonstrates empirical rigor through calibrated simulations, two numerical methods (Euler scheme and Longstaff-Schwartz), and detailed sensitivity analyses on fee levels, volatility, and trader behavior.
Research Flowchart
flowchart TD
A["Research Goal<br>Find optimal exit time for LPs<br>in AMMs given IL and fees"] --> B["Model Formulation<br>Stochastic Control Problem<br>Endogenous Stopping Time"]
B --> C{"Data & Calibration"}
C --> C1["Oracle Price Volatility"]
C --> C2["Fee Levels"]
C --> C3["Trader Behavior<br>Arbitrageurs & Noise"]
B --> D["Computational Methods"]
D --> D1["HJB QVIE<br>Operator Splitting"]
D --> D2["Longstaff-Schwartz<br>Regression"]
D --> E["Simulation & Analysis"]
E --> F["Key Findings & Outcomes"]
F --> F1["Optimal exit balances<br>fees vs. impermanent loss"]
F --> F2["Strategy depends on<br>pool state & misalignment"]
F --> F3["Derived optimal fee level<br>for the representative LP"]
Cited References (114)
- Price-aware automated market makers: Models beyond brownian prices and static liquidity — → 2405.03496
- Automated market making: the case of pegged assets — → 2411.08145
- Arbitrageurs’ profits, LVR, and sandwich attacks: batch trading as an AMM design response (2023) — link
- An economic model of a decentralized exchange with concentrated liquidity (2025)
- An analysis of Uniswap markets (2020)
- The replicating portfolio of a constant product market (2020)
- The replicating portfolio of a constant product market with bounded liquidity (2021)
- Lectures on BSDEs, stochastic control, and stochastic differential games with financial applications (2016)
and 106 more
- Optimal Decisions for Liquid Staking: Allocation and Exit Timing — → 2507.14810
- Fundamentals of Stochastic Filtering (2009)
- Controlled Markov Processes and Viscosity Solutions (2006)
- Mean field games with partial information for algorithmic trading (2018) — link
- Equilibrium reward for liquidity providers in automated market makers — → 2503.22502
- Martingales `a temps discret (1972)
- Pathwise stochastic control with applications to robust filtering (2020)
- Portfolio choice, portfolio liquidation, and portfolio transition under drift uncertainty (2019)
- Optimal fees for geometric mean market makers (2021)
- Improved price oracles: Constant function market makers (2020)
- Strategic liquidity provision in uniswap v3 (2021) — link
- The need for fees at a dex: How increases in fees can increase dex trading volume (2022)
- Liquidity provision by automated market makers (2020)
- The economics of automated market makers (2022)
- Coexisting exchange platforms: Limit order books and automated market makers (2025)
- On the quality of cryptocurrency markets: Centralized versus decentralized exchanges (2021) — link
- Decentralized exchange: The uniswap automated market maker (2025)
- Automated market making and arbitrage profits in the presence of fees — → 2305.14604
- Parameter uncertainty in the Kalman–Bucy filter (2019)
- Liquidity in competitive dealer markets (2021)
- Optimal Dynamic Fees in Automated Market Makers — → 2506.02869
- The adoption of blockchain-based decentralized exchanges (2021) — link
- Execution and statistical arbitrage with signals in multiple automated market makers (2023)
- Optimal exiting for liquidity provision in constant function market makers (2025)
- Decentralized Finance and Automated Market Making: Predictable Loss and Optimal Liquidity Provision (2024)
- Arbitrage on Decentralized Exchanges — → 2507.08302
- Model-Free Hedging of Impermanent Loss in Geometric Mean Market Makers with Proportional Transaction Fees (2024)
- Model-free hedging of impermanent loss in geometric mean market makers — → 2303.11118
- Automated market making and loss-versus-rebalancing (2022) — link
- A myersonian framework for optimal liquidity provision in automated market makers — → 2303.00208
- A Structural Model of Automated Market Making (2025)
- Liquidity provision of utility indifference type in decentralized exchanges — → 2502.01931
- Decentralised finance and automated market making: Execution and speculation (2025)
- Optimal execution of portfolio transactions (2001)
- Liquidity provision with adverse selection and inventory costs (2023)
- The Financial Mathematics of Market Liquidity: From optimal execution to market making (2016)
- Algorithmic market making in dealer markets with hedging and market impact (2023)
- Convex analysis and variational problems (1999)
- Internalisation by electronic FX spot dealers (2019)
- A mean-field game of market-making against strategic traders (2023)
- Optimal trading strategy and supply/demand dynamics (2013)
- Dynamic programming approach to principal–agent problems (2018)
- On the impossibility of informationally efficient markets (1980)
- Liquidity and market structure (1988)
- Detecting Toxic Flow — → 2312.05827
- Nash Equilibrium between Brokers and Traders — → 2407.10561
- Unwinding Stochastic Order Flow: When to Warehouse Trades — → 2310.14144
- Strategic insider trading equilibrium: a filter theory approach (2012)
- Double-execution strategies using path signatures (2022)
- Trading foreign exchange triplets (2020)
- A Mean Field Game between Informed Traders and a Broker — → 2401.05257
- A survey of nonsymmetric Riccati equations (2002)
- Non—Blow—Up Conditions for Riccati—type Matrix Differential and Difference Equations (2000)
- Optimal signal-adaptive trading with temporary and transient price impact (2022)
- Optimal trading: The importance of being adaptive (2021)
- Mean-field games with differing beliefs for algorithmic trading (2020)
- Trading algorithms with learning in latent alpha models (2019)
- Merton’s optimal investment problem with jump signals (2021) — link
- Stochastic calculus and applications (2015)
- Enhancing trading strategies with order book signals (2018)
- Option Volume Imbalance as a predictor for equity market returns (2022) — link
- Unwinding Toxic Flow with Partial Information — → 2407.04510
- Optimal execution with stochastic delay (2021)
- Brokers and Informed Traders: dealing with toxic flow and extracting trading signals (2022)
- Liquidation in target zone models (2018)
- Closed-loop N ash competition for liquidity (2023)
- Continuous-time Stochastic Control and Optimization with Financial Applications (2009)
- Portfolio liquidation games with self-exciting order flow (2022)
- Liquidity in competitive dealer markets (2021)
- Investing for the long run when returns are predictable (2000)
- Optimal Trade Execution under Endogenous Order Flow (2023)
- Algorithmic trading with model uncertainty (2017)
- Continuous-time stochastic control and optimization with financial applications (2009)
- Incorporating signals into optimal trading (2019)
- Incorporating order-flow into optimal execution (2016)
- Algorithmic and high-frequency trading (2015)
- Buy low, sell high: A high frequency trading perspective (2014)
- Matrix Riccati equations in control and systems theory (2012)
- Fast and Slow Optimal Trading with Exogenous Information (2023)
- Market microstructure theory (1998)
- Mean-variance hedging for partially observed drift processes (2001)
- Solvability of differential Riccati equations and applications to algorithmic trading with signals (2022)
- Automated market makers: Mean-variance analysis of lps payoffs and design of pricing functions (2024)
- Uniswap v4 core [draft] (2023)
- Uniswap v3 core (2021)
- Automated market makers designs beyond constant functions (2023)
- am-amm: An auction-managed automated market maker — → 2403.03367
- Strategic Bonding Curves in Automated Market Makers (2024)
- Optimal Portfolio in Partially Observed Stochastic Volatility Models (2001)
- Equilibrium in Functional Stochastic Games with Mean-Field Interaction — → 2306.05433
- Optimal Fees for Liquidity Provision in Automated Market Makers — → 2508.08152
- Optimal exit from Uniswap v3 and best expected return for a liquidity provider (2025)
- Weak dynamic programming principle for viscosity solutions (2011)
- Optimal stochastic control, stochastic target problems, and backward SDE (2012)
- High Frequency Trading in a Limit Order Book (2008)
- Informed speculation with imperfect competition (1989)
- Continuous auctions and insider trading (1985)
- Buy Low, Sell High: A High Frequency Trading Perspective (2014) — link
- Market making with alpha signals (2020)
- Riccati Differential Equations (1972)
- PORTFOLIO OPTIMIZATION IN A DEFAULT MODEL UNDER FULL/PARTIAL INFORMATION (2015)
- Optimal Market Making under Partial Information with General Intensities (2020)
- Mean Field Game Systems with Common and Latent Processes (2018)
- Applied Stochastic Control of Jump Diffusions (2007) — link
- Über die partiellen Differenzengleichungen der mathematischen Physik (1928) — link
- Valuing American options by simulation: A simple least-squares approach (2001)
18 of 114 cited works are in the corpus; resolved via arXiv source bundles, Semantic Scholar and OpenAlex. Corpus-wide: 2518 linked papers.