Article

Liquidity Pool Design on Automated Market Makers

Authors:
To read the full-text of this research, you can request a copy directly from the authors.

No full-text available

Request Full-text Paper PDF

To read the full-text of this research,
you can request a copy directly from the authors.

... Prior literature has studied incentives in AMMs, but no prior work has simultaneously modeled and analyzed the following three properties of CLMMs: (1) LPs can only invest up to a fixed budget, (2) LPs in CLMMs can invest different amounts in different price ranges, and (3) LPs compete against each other for fees, and thus must take into account other LPs' strategies and their budgets [26]. Most existing works focus on the study of a single LP's strategy [23] or on the case where LPs are identical [10,23,24,29,30,35], and in both cases the budget is assumed to be unlimited [35]. For legacy AMMs, [35] proposes a framework using symmetric games to show the uniqueness of the symmetric Nash equilibrium. ...
Preprint
Automated marker makers (AMMs) are a class of decentralized exchanges that enable the automated trading of digital assets. They accept deposits of digital tokens from liquidity providers (LPs); tokens can be used by traders to execute trades, which generate fees for the investing LPs. The distinguishing feature of AMMs is that trade prices are determined algorithmically, unlike classical limit order books. Concentrated liquidity market makers (CLMMs) are a major class of AMMs that offer liquidity providers flexibility to decide not only \emph{how much} liquidity to provide, but \emph{in what ranges of prices} they want the liquidity to be used. This flexibility can complicate strategic planning, since fee rewards are shared among LPs. We formulate and analyze a game theoretic model to study the incentives of LPs in CLMMs. Our main results show that while our original formulation admits multiple Nash equilibria and has complexity quadratic in the number of price ticks in the contract, it can be reduced to a game with a unique Nash equilibrium whose complexity is only linear. We further show that the Nash equilibrium of this simplified game follows a waterfilling strategy, in which low-budget LPs use up their full budget, but rich LPs do not. Finally, by fitting our game model to real-world CLMMs, we observe that in liquidity pools with risky assets, LPs adopt investment strategies far from the Nash equilibrium. Under price uncertainty, they generally invest in fewer and wider price ranges than our analysis suggests, with lower-frequency liquidity updates. We show that across several pools, by updating their strategy to more closely match the Nash equilibrium of our game, LPs can improve their median daily returns by \$116, which corresponds to an increase of 0.009\% in median daily return on investment.
Article
Automated marker makers (AMMs) are decentralized exchanges that enable the automated trading of digital assets. Liquidity providers (LPs) deposit digital tokens, which can be used by traders to execute trades, which generate fees for the investing LPs. In AMMs, trade prices are determined algorithmically, unlike classical limit order books. Concentrated liquidity market makers (CLMMs) are a major class of AMMs that offer liquidity providers flexibility to decide not only how much liquidity to provide, but in what ranges of prices they want the liquidity to be used. This flexibility can complicate strategic planning, since fee rewards are shared among LPs. We formulate and analyze a game theoretic model to study the incentives of LPs in CLMMs. Our main results show that while our original formulation admits multiple Nash equilibria and has complexity quadratic in the number of price ticks in the contract, it can be reduced to a game with a unique Nash equilibrium whose complexity is only linear. We further show that the Nash equilibrium of this simplified game follows a waterfilling strategy, in which low-budget LPs use up their full budget, but rich LPs do not. Finally, by fitting our game model to real-world CLMMs, we observe that in liquidity pools with risky assets, LPs adopt investment strategies far from the Nash equilibrium. Under price uncertainty, they generally invest in fewer and wider price ranges than our analysis suggests, with lower-frequency liquidity updates. In such risky pools, by updating their strategy to more closely match the Nash equilibrium of our game, LPs can improve their median daily returns by $116, which corresponds to an increase of 0.009% in median daily return on investment (ROI). At maximum, LPs can improve daily ROI by 0.855% when they reach Nash equilibrium. In contrast, in stable pools (e.g., of only stablecoins), LPs already adopt strategies that more closely resemble the Nash equilibrium of our game.
Article
Full-text available
With the emergence of decentralized finance, new trading mechanisms called automated market makers have appeared. The most popular Automated Market Makers are Constant Function Market Makers. They have been studied both theoretically and empirically. In particular, the concept of impermanent loss has emerged and explains part of the profit and loss of liquidity providers in Constant Function Market Makers. In this paper, we propose another mechanism in which price discovery does not solely rely on liquidity takers but also on an external exchange rate or price oracle. We also propose to compare the different mechanisms from the point of view of liquidity providers by using a mean/variance analysis of their profit and loss compared to that of agents holding assets outside of Automated Market Makers. In particular, inspired by Markowitz’ modern portfolio theory, we manage to obtain an efficient frontier for the performance of liquidity providers in the idealized case of a perfect oracle. Beyond that idealized case, we show that even when the oracle is lagged and in the presence of adverse selection by liquidity takers and systematic arbitrageurs, optimized oracle-based mechanisms perform better than popular Constant Function Market Makers.
Article
Full-text available
As an integral part of the decentralized finance (DeFi) ecosystem, decentralized exchanges (DEXs) with automated market maker (AMM) protocols have gained massive traction with the recently revived interest in blockchain and distributed ledger technology (DLT) in general. Instead of matching the buy and sell sides, automated market makers (AMMs) employ a peer-to-pool method and determine asset price algorithmically through a so-called conservation function. To facilitate the improvement and development of automated market maker (AMM)-based decentralized exchanges (DEXs), we create the first systematization of knowledge in this area. We first establish a general automated market maker (AMM) framework describing the economics and formalizing the system’s state-space representation. We then employ our framework to systematically compare the top automated market maker (AMM) protocols’ mechanics, illustrating their conservation functions, as well as slippage and divergence loss functions. We further discuss security and privacy concerns, how they are enabled by automated market maker (AMM)-based decentralized exchanges (DEXs)’ inherent properties, and explore mitigating solutions. Finally, we conduct a comprehensive literature review on related work covering both decentralized finance (DeFi) and conventional market microstructure.
Article
Full-text available
Recent advancements in decentralized finance (DeFi) have resulted in a rapid increase in the use of Automated Market Makers (AMMs) for creating decentralized exchanges (DEXs). In this paper, we organize these developments by treating an AMM as a neoclassical black-box characterized by the conversion of inputs (tokens) to outputs (prices). The conversion is governed by the technology of the AMM summarized by an ‘exchange function’. Various types of AMMs are examined, including: Constant Product Market Makers; Constant Mean Market Makers; Constant Sum Market Makers; Hybrid Function Market Makers; and, Dynamic Automated Market Makers. The paper also looks at the impact of introducing concentrated liquidity in an AMM. Overall, the framework presented here provides an intuitive geometric representation of how an AMM operates, and a clear delineation of the similarities and differences across the various types of AMMs.
Article
Full-text available
We investigate the problem of optimal investment and consumption of Merton in the case of discrete markets in an infinite horizon. We suppose that there is frictions in the markets due to loss in trading. These frictions are modeled through nonlinear penalty functions and the classical transaction cost and liquidity models are included in this formulation. In this context, the solvency region is defined taking into account this penalty function and every investigator have to maximize his utility, that is derived from consumption, in this region. We give the dynamic programming of the model and we prove the existence and uniqueness of the value function.
Article
Full-text available
This paper considers the consumption behavior of a risk-averse consumer with a preference for immediate consumption who faces an uncertain income stream and plans for a finite or infinite number of periods. The consumer may borrow up to a limit or save, where both saving and borrowing are subject to the same positive rate of interest. We derive the optimal consumption policies for both finite and infinite planning horizons, investigate their characteristics, and analyze their economic and behavioral implications.
Article
Uniswap is a system of smart contracts on the Ethereum blockchain and is the largest decentralized exchange with a liquidity balance worth up to 4 billion USD and daily trading volume of up to 7 billion USD. It is a new model of liquidity provision, so‐called automated market making. For this new market form, we characterize equilibrium in the liquidity pools. We collect all 95.8 million Uniswap interactions and compare this automated market maker (AMM) to a centralized limit order book. We document absence of long‐lived arbitrage opportunities, and show conditions under which the AMM dominates a limit order market.
Chapter
Uniswap v3 is a decentralized exchange (DEX) that allows liquidity providers to allocate funds more efficiently by specifying an active price interval for their funds. This introduces the problem of finding an optimal strategy for choosing price intervals. We formalize this problem as an online learning problem with non-stochastic rewards. We use regret-minimization methods to show a Liquidity Provision strategy that guarantees a lower bound on the reward. This is true even for non-stochastic changes to asset pricing, and we express this bound in terms of the trading volume and the average price change.
Chapter
This paper presents a general framework for the design and analysis of exchange mechanisms between two assets that unifies and enables comparisons between the two dominant paradigms for exchange, constant function market markers (CFMMs) and limit order books (LOBs). In our framework, each liquidity provider (LP) submits to the exchange a downward-sloping demand curve, specifying the quantity of the risky asset it wishes to hold at each price; the exchange buys and sells the risky asset so as to satisfy the aggregate submitted demand. In general, such a mechanism is budget-balanced (i.e., it stays solvent and does not make or lose money) and enables price discovery (i.e., arbitrageurs are incentivized to trade until the exchange’s price matches the external market price of the risky asset). Different exchange mechanisms correspond to different restrictions on the set of acceptable demand curves. The primary goal of this paper is to formalize an approximation-complexity trade-off that pervades the design of exchange mechanisms. For example, CFMMs give up expressiveness in favor of simplicity: the aggregate demand curve of the LPs can be described using constant space (the liquidity parameter), but most demand curves cannot be well approximated by any function in the corresponding single-dimensional family. LOBs, intuitively, make the opposite trade-off: any downward-slowing demand curve can be well approximated by a collection of limit orders, but the space needed to describe the state of a LOB can be large. This paper introduces a general measure of exchange complexity, defined by the minimal set of basis functions that generate, through their conical hull, all of the demand functions allowed by an exchange. With this complexity measure in place, we investigate the design of optimally expressive exchange mechanisms, meaning the lowest complexity mechanisms that allow for arbitrary downward-sloping demand curves to be approximated to within a given level of precision. Our results quantify the fundamental trade-off between simplicity and expressivity in exchange mechanisms. As a case study, we interpret the complexity-approximation trade-offs in the widely-used Uniswap v3 AMM through the lens of our framework.
Chapter
We are interested in how the relationship between the fee in a constant product market (CPM) and the volatility of the swapped pair on other liquid exchanges influences the losses/gains of the liquidity providers. We review three classical market making models: Glosten and Milgrom, Kyle and Grossman and Miller and note that these very different models there is always a relationship between volatility and how rational market makers set prices. Motivated by this we set up an agent based model to explore this in the context of CPMs like Uniswap. We conclude that if the fee is too low relative to the volatility of the traded pair then the liquidity providers will end up making a loss over the medium term. From this we go to suggesting that CPM markets need to let liquidity providers set the fee via a governance mechanism especially as volatilities of assets fluctuate. The code for all simulations is available at https://github.com/msabvid/cpm_agent_based_sim.KeywordsConstant Product MarketMechanism DesignAgent Based SimulationReinforcement Learning
Article
Although leveraged exchange-traded funds (ETFs) are popular products for retail investors, how to hedge them poses a great challenge to financial institutions. We develop an optimal rebalancing (hedging) model for leveraged ETFs in a comprehensive setting, including overnight market closure and market frictions. The model allows for an analytical optimal rebalancing strategy. The result extends the principle of “aiming in front of target” introduced by Gârleanu and Pedersen (2013) from a constant weight between current and future positions to a time-varying weight because the rebalancing performance is monitored only at discrete time points, but the rebalancing takes place continuously. Empirical findings and implications for the weekend effect and the intraday trading volume are also presented. This paper was accepted by Agostino Capponi, finance.
Chapter
Constant Function Market Makers (CFMMs) are a family of automated market makers that enable censorship-resistant decentralized exchange on public blockchains. Arbitrage trades have been shown to align the prices reported by CFMMs with those of external markets. These trades impose costs on Liquidity Providers (LPs) who supply reserves to CFMMs. Trading fees have been proposed as a mechanism for compensating LPs for arbitrage losses. However, large fees reduce the accuracy of the prices reported by CFMMs and can cause reserves to deviate from desirable asset compositions. CFMM designers are therefore faced with the problem of how to optimally select fees to attract liquidity. We develop a framework for determining the value to LPs of supplying liquidity to a CFMM with fees when the underlying process follows a general diffusion. Focusing on a popular class of CFMMs which we call Geometric Mean Market Makers (G3Ms), our approach also allows one to select optimal fees for maximizing LP value. We illustrate our methodology by showing that an LP with mean-variance utility will prefer a G3M over all alternative trading strategies as fees approach zero.
Article
We propose a model in which dividend payments occur at regular, deterministic intervals in an otherwise continuous model. This contrasts traditional models where either the payment of continuous dividends is controlled or the dynamics are given by discrete time processes. Moreover, between two dividend payments, the structure allows for other types of control; we consider the possibility of equity issuance at any point in time. The value is characterized as the fixed point of an optimal control problem with periodic initial and terminal conditions. We prove the regularity and uniqueness of the corresponding dynamic programming equation and the convergence of an efficient numerical algorithm that we use to study the problem. The model enables us to find the loss caused by infrequent dividend payments. We show that under realistic parameter values, this loss varies from around 1%–24% depending on the state of the system and that using the optimal policy from the continuous problem further increases the loss.
Article
We analyse the dynamic properties of a one-sector optimal growth model and then extend this analysis to the optimal growth model in which each generation cares about its own parent generation, its own consumption and the utility of its successor.
Article
This paper considers a class of discrete-time, infinite-horizon optimization problems arising in economics. Necessary optimality conditions for such problems consist of an Euler equation and a transversality condition at infinity. Our concern here is with the latter condition. Previous results for this type of problem have required such restrictions as concavity and boundedness of the utility functions whose sum is being maximized. Here we derive a transversality condition that remains valid under considerably more general hypotheses. In doing so, we introduce methods that may also be applicable to other situations, such as optimization in continuous time.
Article
In this paper, we prove some fixed point theorems of increasing operators which map an order interval into itself. Compactness conditions on the operator are removed by assuming the space to be weakly complete or assuming the operator to have some concavity or convexity properties. some results of M. A. Krasnoselskii and H. Amann are generalized. The abstract results are used to get some existence theorems for ODEs in Banach spaces.
Liquidity provision by automated market makers
  • J Aoyagi
Optimal fees for geometric mean market makers, Financial Cryptography and Data Security
  • A Evans
A myersonian framework for optimal liquidity provision in automated market makers
  • J Milionis
Dynamic curves for decentralized autonomous cryptocurrency exchanges
  • B Krishnamachari
Strategic liquidity provision in uniswap v3
  • Z Fan
An axiomatic characterization of cfmms and equivalence to prediction markets
  • R Frongillo
Presentation and publication: Loss and slippage in networks of automated market makers
  • D Engel