UAMM: Price-oracle based Automated Market Maker

Daniel Jiwoong Im,Alexander Kondratskiy,Vincent Harvey,Hsuan-Wei Fu
2024-08-26
Abstract:Automated market makers (AMMs) are pricing mechanisms utilized by decentralized exchanges (DEX). Traditional AMM approaches are constrained by pricing solely based on their own liquidity pool, without consideration of external markets or risk management for liquidity providers. In this paper, we propose a new approach known as UBET AMM (UAMM), which calculates prices by considering external market prices and the impermanent loss of the liquidity pool. Despite relying on external market prices, our method maintains the desired properties of a constant product curve when computing slippages. The key element of UAMM is determining the appropriate slippage amount based on the desired target balance, which encourages the liquidity pool to minimize impermanent loss. We demonstrate that our approach eliminates arbitrage opportunities when external market prices are efficient.
Machine Learning,Computational Engineering, Finance, and Science,Computational Finance
What problem does this paper attempt to address?
This paper attempts to solve several key problems faced by Automated Market Makers (AMMs) in Decentralized Exchanges (DEXs). Specifically, the traditional AMM methods have the following main problems: 1. **Relying solely on internal market information**: The existing AMM mechanisms base their pricing only on their own liquidity pools, without considering external market prices or conducting risk management for Liquidity Providers (LPs). This results in AMMs being unable to reflect external market price changes in a timely manner, thereby causing potential losses for LPs. 2. **Arbitrage opportunities**: Since the prices of AMMs are completely determined by the internal liquidity pools, when the internal and external market prices are inconsistent, arbitrage opportunities will arise. These arbitrage opportunities will not only lead to losses for LPs but also reduce market efficiency. 3. **Slow to adapt to price changes**: AMMs are relatively slow to respond to external market price changes and require someone to take advantage of arbitrage opportunities to prompt AMMs to adjust prices. This lag is particularly evident in cases of large market fluctuations or when the market fails to quickly return to a stable price. To address these problems, the paper proposes a new AMM algorithm - UBET AMM (UAMM), with the following main improvements: - **Introducing external market prices**: UAMM calculates prices by combining external market prices and internal liquidity pool information, thereby more accurately reflecting the actual market situation and reducing arbitrage opportunities. - **Maintaining the characteristics of the constant product curve**: Although external market prices are used, UAMM can still maintain the characteristics of the constant product curve when calculating the slippage, ensuring that the basic functions of AMM are not affected. - **Minimizing impermanent loss**: UAMM encourages the liquidity pool balance to approach the target balance by determining an appropriate slippage amount, thereby minimizing impermanent loss. Impermanent loss refers to the situation where the value of assets held by LPs in the liquidity pool is lower than the value of directly holding these assets due to market price fluctuations. - **Eliminating arbitrage opportunities**: When the external market price is valid, UAMM can completely eliminate arbitrage opportunities, further protecting the interests of LPs. In conclusion, UAMM aims to improve the risk management capabilities of AMMs by combining internal and external market price information and provide a safer and more stable income environment for LPs.