Skip to main content
QUICK REVIEW

[Paper Review] Arbitrageurs' profits, LVR, and sandwich attacks: batch trading as an AMM design response

Andrea Canidio, Robin Fritsch|arXiv (Cornell University)|Jan 1, 2023
Blockchain Technology Applications and SecurityComputer Science4 citations
TL;DR

This paper proposes the Function-Maximizing AMM (FM-AMM), a batch-auction-based automated market maker that eliminates arbitrage profits and sandwich attacks by setting uniform execution prices based on post-batch marginal prices. By aligning arbitrageurs' incentives with liquidity providers, it redirects MEV profits to LPs, resulting in a simulated liquidity provision return that slightly exceeds Uniswap v3's empirical returns across 11 token pairs.

ABSTRACT

We consider an automated market maker (AMM) in which all trades are batched and executed at a price equal to the marginal price (i.e., the price of an arbitrarily small trade) after the batch trades. We show that such an AMM is a function maximizing AMM (or FM-AMM): for given prices, it trades to reach the highest possible value of a given function. Competition between arbitrageurs guarantees that an FM-AMM always trades at a fair, equilibrium price, and arbitrage profits (also known as LVR) are eliminated. Sandwich attacks are also eliminated because all trades occur at the exogenously-determined equilibrium price. Finally, we show that our results are robust to the case where the batch has exclusive access to the FM-AMM, but can also trade on a traditional constant function AMM.

Motivation & Objective

  • To address the core problems of arbitrage profits and sandwich attacks in decentralized finance (DeFi) that stem from sequential execution in constant function AMMs.
  • To design a novel AMM mechanism—FM-AMM—that processes trades in batches and uses uniform pricing to eliminate price discrimination.
  • To show that competition among informed arbitrageurs in the FM-AMM framework drives prices to equilibrium, eliminating MEV extraction.
  • To empirically estimate the lower bound of liquidity provider returns on FM-AMM using Binance data, comparing it to Uniswap v3 performance.

Proposed method

  • The FM-AMM batches all trades within a time window and executes them at a uniform price equal to the marginal price after the batch, derived from a function-maximization principle.
  • The mechanism is formally defined as the solution to a first-order condition that maximizes a predetermined function of the AMM’s reserves for given asset prices.
  • The design ensures that, when the function is the product of reserves and no fee is charged, the AMM implements an equal-weight rebalancing strategy.
  • Arbitrageurs compete to trade with the batch, and due to the uniform pricing, they cannot earn profits if the batch price is already at equilibrium.
  • The model assumes that equilibrium prices are determined exogenously (e.g., on a centralized exchange), and the FM-AMM’s price converges to this level due to arbitrage competition.
  • A simulation framework uses six months of Binance data for 11 token pairs to compute the minimum return achievable by providing liquidity to the FM-AMM under various fee structures.

Experimental results

Research questions

  • RQ1Can batch trading in an AMM design eliminate arbitrage profits and sandwich attacks by removing price discrimination between trades?
  • RQ2How does competition among arbitrageurs in a batch-based AMM affect the final execution price and the distribution of MEV?
  • RQ3What is the lower bound on liquidity provider returns under the FM-AMM design, and how does it compare to existing protocols like Uniswap v3?
  • RQ4To what extent does the FM-AMM preserve path independence, and how does batching alter the design space of AMM mechanisms?
  • RQ5Can the FM-AMM be extended to eliminate MEV in other DeFi contexts, such as liquidation in lending protocols?

Key findings

  • The FM-AMM eliminates arbitrage profits and sandwich attacks by ensuring all trades in a batch execute at the same price, equal to the post-trade marginal price.
  • Competition among arbitrageurs guarantees that the batch price converges to the equilibrium price, redirecting MEV profits to liquidity providers instead of validators or attackers.
  • Simulations using Binance data for 11 token pairs show that the lower bound on liquidity provider returns for FM-AMM slightly exceeds the empirical returns observed on Uniswap v3.
  • The FM-AMM achieves this performance without requiring path independence, enabling a broader class of AMM designs.
  • The mechanism is robust to extensions where the batch operator can also settle trades on a CFAMM, though in that case arbitrageurs may still earn profits at the expense of the CFAMM’s LPs.
  • The paper conjectures that applying the FM-AMM to liquidation processes in lending protocols could eliminate the remaining major source of MEV in DeFi.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.