Automated Market Making and Arbitrage Profits in the Presence of Fees (2305.14604v1)
Abstract: We consider the impact of trading fees on the profits of arbitrageurs trading against an automated marker marker (AMM) or, equivalently, on the adverse selection incurred by liquidity providers due to arbitrage. We extend the model of Milionis et al. [2022] for a general class of two asset AMMs to both introduce fees and discrete Poisson block generation times. In our setting, we are able to compute the expected instantaneous rate of arbitrage profit in closed form. When the fees are low, in the fast block asymptotic regime, the impact of fees takes a particularly simple form: fees simply scale down arbitrage profits by the fraction of time that an arriving arbitrageur finds a profitable trade.
Summary
- The paper extends the LVR framework by incorporating trading fees and discrete arbitrageur arrivals to quantify how fees reduce arbitrage profits in AMMs.
- It derives the stationary distribution of the log mispricing process and provides closed-form expressions for the probability of trade and arbitrage profit rates.
- The framework offers actionable insights for setting AMM fees, managing liquidity provider risks, and understanding blockchain block time effects on DeFi protocols.
This paper investigates the impact of trading fees on the profits earned by arbitrageurs interacting with Automated Market Makers (AMMs), which directly corresponds to the adverse selection costs borne by Liquidity Providers (LPs). It extends the "loss-versus-rebalancing" (LVR) framework developed in prior work (Saeed et al., 2020), which quantified arbitrage costs in a frictionless, continuous-time setting, by incorporating both trading fees and discrete arbitrageur arrival times.
Model Setup
The model considers an AMM trading a risky asset against a numeraire.
- Market Price: The external market price Pt of the risky asset follows a geometric Brownian motion (GBM) with volatility σ.
- AMM: The AMM is a general Constant Function Market Maker (CFMM) defined by a bonding function f(x,y)=L, where x and y are the reserves of the risky asset and numeraire. The pool's state can be represented by the reserves (x,y) or by the implied price P~t such that the reserves are (x∗(P~t),y∗(P~t)), derived from the pool value function V(P)=maxf(x,y)=L(Px+y).
- Trading Fees: Proportional trading fees are charged on trades, paid in the numeraire. The fees are parameterized by γ+ and γ− (in log-price units) for buying and selling the risky asset from the pool, respectively. A symmetric fee structure (γ+=γ−=γ) is assumed for much of the analysis for simplicity.
- Arbitrageur Arrivals: Arbitrageurs can only trade against the AMM at discrete times τi, modeled as arrivals of a Poisson process with rate λ. This rate λ is linked to the blockchain's mean interblock time (Δt=λ−1).
- Arbitrageur Behavior: Arriving arbitrageurs are myopic profit maximizers. If the market price Pt is outside the range [P~t−e−γ−,P~t−e+γ+], where P~t− is the AMM price just before arrival, the arbitrageur trades with the AMM (and hedges on the external market) until the AMM's marginal price, adjusted for fees, equals the market price. This brings the AMM's implied price P~t to either Pte−γ+ or Pte+γ−. If Pt is within the no-trade range, no trade occurs.
Mispricing Process Dynamics
The core of the analysis focuses on the log mispricing process zt=log(Pt/P~t).
- Between Arrivals: zt follows a diffusion process driven by the GBM of the market price: dzt=(μ−σ2/2)dt+σdBt.
- At Arrivals (τi): zt jumps. If zτi−>+γ+, it jumps to +γ+. If zτi−<−γ−, it jumps to −γ−. Otherwise, it stays the same.
This makes zt a Markovian jump-diffusion process, reflected within the "no-trade region" [−γ−,+γ+].
Key Results
- Stationary Distribution: Under the symmetry assumption (μ=σ2/2,γ+=γ−=γ), the mispricing process zt is ergodic and converges to a unique stationary distribution π(⋅). This distribution has a density pπ(z) that is:
- Uniform over the no-trade region [−γ,+γ].
- Exponentially decaying outside this region (tails are exponential with parameter η/γ=2λ/σ). The total probability mass within the no-trade region is π0=1+ηη, and outside is π++π−=1+η1, where η=2λγ/σ.
- Probability of Trade (ρ): The long-run fraction of blocks containing an arbitrage trade (i.e., the probability that an arriving arbitrageur finds zt outside the no-trade region) is ρ=π++π−=1+η1=1+2λγ/σ1. This probability decreases with higher fees (γ), more frequent blocks (λ), and lower volatility (σ).
- Rate of Arbitrage Profit (A): The expected instantaneous rate of arbitrage profit, A=limT→∞E[AT]/T, is derived in a semi-closed form involving an integral (Laplace transform) of the profit function over the tails of the stationary distribution.
- CPMM Example: For a Constant Product Market Maker (xy=k), the normalized rate of arbitrage profit is given in explicit closed form: V(P)A=8σ2×ρ×1−σ2/(8λ)cosh(γ/2). This shows that for small fees and fast blocks (λ→∞), A≈ρ×LVR, where LVR = 8σ2V(P) is the frictionless arbitrage profit rate.
- Asymptotic Analysis (λ→∞): In the fast block limit, for general AMMs (under mild technical conditions):
- A≈2σ2P×yˉ∗′(P,γ)×ρ, where yˉ∗′(P,γ) is the average marginal liquidity at the edges of the no-trade region 2y∗′(Pe−γ)+y∗′(Pe+γ). For small γ, this simplifies to A≈LVR×ρ.
- This implies arbitrage profits scale as A∝λ−1σ3/γ. Faster blocks reduce arbitrage profit.
- The instantaneous rate of fee generation F is also derived, showing that for small γ, F≈LVR×(1−ρ).
- Combining these, A+F≈LVR in this regime, meaning the total potential arbitrage profit (LVR) is split between actual arbitrageur profit (A) and fees paid (F), with the split determined by ρ.
Implications for Implementation
- Quantifying LP Costs: The model provides a more realistic way to estimate LP losses due to adverse selection (arbitrage) by accounting for fees and discrete trading opportunities. This can be used for ex post performance analysis or ex ante risk assessment using realized volatility.
- AMM Fee Setting: The formulas, especially the asymptotic results and the probability of trade ρ, give quantitative guidance on how fees impact arbitrage. Higher fees reduce A but also increase the time the AMM price deviates from the market price (increasing σz, the standard deviation of mispricing). The paper quantifies this trade-off (shown in Figure 1).
- Blockchain Design: The result that A∝λ−1 (for γ>0) suggests that blockchains with faster block times (higher λ) inherently reduce the potential for arbitrage exploitation of AMMs, without necessarily impacting fee revenue from noise traders.
- Relationship to LVR: The paper shows that LVR represents an upper bound on arbitrage profits. Fees and discrete block times effectively act as frictions that reduce realized arbitrage profits below the LVR level. The factor ρ quantifies this reduction in the fast-block, low-fee regime.
In summary, the paper provides a tractable mathematical framework for analyzing arbitrage against AMMs with fees and discrete trading times. It yields closed-form or semi-closed-form results for the stationary distribution of mispricing and the expected rate of arbitrage profits and fees, offering practical insights for LP risk management, AMM fee design, and understanding the impact of blockchain speed on DeFi protocols.
Follow-up Questions
We haven't generated follow-up questions for this paper yet.