Table of Contents
Fetching ...

Augmenting Batch Exchanges with Constant Function Market Makers

Geoffrey Ramseyer, Mohak Goyal, Ashish Goel, David Mazières

TL;DR

The paper develops an axiomatic framework to integrate CFMMs into multi-asset batch exchanges, revealing fundamental trade-offs that prevent simultaneously achieving all desirable properties. It defines minimal axioms and several target properties (PO, PC, PPC, JPD, LCR, and path independence) and proves key impossibility results, guiding design choices. It then offers two natural equilibrium-formation algorithms (Trading Rule U and Trading Rule S), analyzes which properties they satisfy (notably that U yields JPD and S yields PPC under the CLCP class), and provides a convex program that computes equilibria for two-asset, WGS-demand settings. Finally, it discusses beyond-equilibrium ideas like post-processing by CFMMs to reach JPD, highlighting practical trade-offs and open problems, including the role of fees and multi-asset generalizations.

Abstract

Batch auctions are a classical market microstructure, acclaimed for their fairness properties, and have received renewed interest in the context of blockchain-based financial systems. Constant function market makers (CFMMs) are another market design innovation praised for their computational simplicity and applicability to liquidity provision via smart contracts. Liquidity provision in batch exchanges is an important problem, and CFMMs have recently shown promise in being useful within batch exchanges. Different real-world implementations have used fundamentally different approaches towards integrating CFMMs in batch exchanges, and there is a lack of formal understanding of different design tradeoffs. We first provide a minimal set of axioms that are well-accepted rules of batch exchanges and CFMMs. These are asset conservation, uniform valuations, a best response for limit orders, and non-decreasing CFMM trading function. In general, many market solutions may satisfy all our axioms. We then describe several economically useful properties of market solutions. These include Pareto optimality for limit orders, price coherence of CFMMs (as a defence against cyclic arbitrage), joint price discovery for CFMMs (as a defence against parallel running), path independence for simple instances, and a locally computable response of the CFMMs in equilibrium (to provide them predictability on trade size given a market price). We show fundamental conflicts between some pairs of these properties. We then provide two ways of integrating CFMMs in batch exchanges, which attain different subsets of these properties. We further provide a convex program for computing Arrow-Debreu exchange market equilibria when all agents have weak gross substitute (WGS) demand functions on two assets -- this program extends the literature on Arrow-Debreu exchange markets and may be of independent interest.

Augmenting Batch Exchanges with Constant Function Market Makers

TL;DR

The paper develops an axiomatic framework to integrate CFMMs into multi-asset batch exchanges, revealing fundamental trade-offs that prevent simultaneously achieving all desirable properties. It defines minimal axioms and several target properties (PO, PC, PPC, JPD, LCR, and path independence) and proves key impossibility results, guiding design choices. It then offers two natural equilibrium-formation algorithms (Trading Rule U and Trading Rule S), analyzes which properties they satisfy (notably that U yields JPD and S yields PPC under the CLCP class), and provides a convex program that computes equilibria for two-asset, WGS-demand settings. Finally, it discusses beyond-equilibrium ideas like post-processing by CFMMs to reach JPD, highlighting practical trade-offs and open problems, including the role of fees and multi-asset generalizations.

Abstract

Batch auctions are a classical market microstructure, acclaimed for their fairness properties, and have received renewed interest in the context of blockchain-based financial systems. Constant function market makers (CFMMs) are another market design innovation praised for their computational simplicity and applicability to liquidity provision via smart contracts. Liquidity provision in batch exchanges is an important problem, and CFMMs have recently shown promise in being useful within batch exchanges. Different real-world implementations have used fundamentally different approaches towards integrating CFMMs in batch exchanges, and there is a lack of formal understanding of different design tradeoffs. We first provide a minimal set of axioms that are well-accepted rules of batch exchanges and CFMMs. These are asset conservation, uniform valuations, a best response for limit orders, and non-decreasing CFMM trading function. In general, many market solutions may satisfy all our axioms. We then describe several economically useful properties of market solutions. These include Pareto optimality for limit orders, price coherence of CFMMs (as a defence against cyclic arbitrage), joint price discovery for CFMMs (as a defence against parallel running), path independence for simple instances, and a locally computable response of the CFMMs in equilibrium (to provide them predictability on trade size given a market price). We show fundamental conflicts between some pairs of these properties. We then provide two ways of integrating CFMMs in batch exchanges, which attain different subsets of these properties. We further provide a convex program for computing Arrow-Debreu exchange market equilibria when all agents have weak gross substitute (WGS) demand functions on two assets -- this program extends the literature on Arrow-Debreu exchange markets and may be of independent interest.
Paper Structure (19 sections, 12 theorems, 2 equations, 2 figures)

This paper contains 19 sections, 12 theorems, 2 equations, 2 figures.

Key Result

Theorem 1.5

A batch exchange cannot simultaneously guarantee Pareto optimality for limit orders and preservation of price coherence (PPC) for CFMMs.

Figures (2)

  • Figure 1: Examples of level sets of commonly studied CFMM trading functions. X-axis and Y-axis denote the amounts of assets A and B in the liquidity pool of the CFMM, respectively. Examples of spot prices are illustrated by dashed lines. Where the trading function is differentiable, the negative slope of the tangent at a point gives the spot price (Definition \ref{['defn:spot']}).
  • Figure 2: Examples of LCR CFMM trading rules. The axes are the CFMM's reserves. The blue curve is a level curve of the CFMM trading function on which the initial state lies. The slope of the tangent to the level curve denotes the CFMM's spot price. The slope of the dotted orange line is the batch price for this example. Here, the green and the orange lines have the same slopes. Trading Rules S and U are per Definitions \ref{['def:trs']} and \ref{['def:tru']}. Trading Rules E and F are inspired by the rebalancing strategy of milionis2022automated and are defined later in §\ref{['sec:beyond-market']}. The line segment between points E and F corresponds to the class of Strict-Surplus Trading Rules (Definition \ref{['def:sstr']}).

Theorems & Definitions (30)

  • Definition 1.1: Spot Price
  • Definition 1.2: Limit Sell Order
  • Definition 1.3: Market Sell Order
  • Definition 1.4: Limit Buy Order
  • Theorem 1.5
  • Theorem 1.6
  • proposition 1
  • Theorem 1.7
  • Definition 2.1: Market Equilibrium
  • Definition 3.1: Pareto Optimal Market Equilibria
  • ...and 20 more