
of writing this paper1is estimated to be $45B. The considerable volume of assets traded
on AMMs contrasts with their simple economic design which is notably different from the
design of traditional financial exchanges. The state of a typical AMM used in DeFi consists
of the current inventories of the traded tokens. Trades are made such that some invariant of
these inventory sizes is kept constant. Traders who want to exchange tokens of type Afor
tokens of another type B, add Atokens to the inventory and in return obtain an amount
of Btokens from the inventory so that the invariant is maintained. The simplicity of these
so-called constant function market makers (CFMMs) stems from the limited storage and
computation capabilities of smart contract blockchains. In comparison to more conven-
tional market designs such as limit order books, updating a simple function and inventories
is relatively inexpensive to implement and scalable on smart contract blockchains such as
Ethereum. Moreover, AMMs allow market participants to provide liquidity passively with-
out having to trade themselves. This makes liquidity provision in AMMs a popular way of
getting (negative) exposure to volatility while being compensated by a steady stream of fee
income.
While CFMMs proved to be very popular and reliable, the construction of invariants to
define them seems in many ways ad-hoc and not based in much theory. In this paper, we fill
this gap and propose an axiomatic approach to constructing CFMMs. The approach is, as
in any axiomatic theory, to formalize simple principles that are implicitly or explicitly used
when constructing trading functions in practice and to check which classes of functions
satisfy these principles, beyond those functions already used in practice. The constant
product market maker (CPMM), which makes the market in such a way that the product of
inventories of the different traded assets is kept constant, has been particularly focal in DeFi
applications. The CPMM was originally introduced by Uniswap, the first and so far most
popular DeFi AMM by trading volume.2Our first main result (Corollary 1) characterizes a
natural superclass of the (multi-dimensional) CPMM by three natural axioms. The CPMM
rule is characterized by being trader optimal within this class (Theorem 2).
In contrast to the case of AMMs for DeFi, there is a much more developed theory for
AMMs for prediction markets (see the literature review, Section 1.1), for which AMMs
have originally been introduced (Hanson, 2003). There are notable differences in the way
that AMMs for prediction markets and those for DeFi function in practice, which has to do
1January 20th, 2023, data obtained from defilama.com.
2A natural generalization of the CPMM, the multi-dimensional weighted geometric mean is for example
used by Balancer, (Martinelli and Mushegian, 2019), the third largest DeFi AMM by trading volume.
The CPMM was used by Uniswap before its update to Version 3 in 2021 and is still in use in many
other AMMs. The CPMM was replaced in V3 by a new design (Adams et al., 2021) that abandons
fungibility of liquidity to allow for customized liquidity positions that can be chosen by individual liquidity
providers. Fungibility of liquidity positions is captured by the scale invariance axioms that we discuss
subsequently. The second largest DeFi AMM by trading volume, the Curve protocol (Egorov, 2019), is
specifically designed to trade highly correlated assets (such as stable coins or different representations of
the same cryptocurrency). Our second main axiom, independence, is violated by the curve AMM. As we
will argue, our main characterization implies separability of the market-making function, which is mainly
appealing for situations where the price correlation between the traded tokens is imperfect. However, for
the two-dimensional case, Theorem 4 characterizes a broad class (including the two-dimensional version of
the curve formula) of generally non-separable CFMMs.
2