In-depth analysis for impermanent losses

x3finance
3 min readFeb 13, 2022

--

Let’s take the ETH-USDT fund pool as an example to quantitatively analyze the risk of AMM. Suppose that the market maker deposits x0 ETH and y0 USDT into the fund pool at the price of P0, and the market maker’s assets will become xn ETH and yn USDT at the price of Pn. There are the following five market-making groups:

  1. . Group 1 who want to hold USDT for a long time participate in market making, hoping to convert into USDT to maintain positive returns;Under the xyk AMM model, its rate of return = yn/y0 -1 = (Pn/P0)^.5 -1 for the market-making group without considering the fee income.

Figure 1 Mining profit and loss of market maker group 1

2) Group 2 who want to hold ETH for a long time participate in market making, hoping to convert it into ETH to maintain a positive income;

Under the xyk AMM, its rate of return = xn/x0 -1 =(P0/Pn)^.5 -1 for the group 2 without considering the fee income.

Figure 2 Mining profit and loss of market maker group 2

3). Group 3 who want to hold both ETH and USDT for a long time participate in market making, hoping to convert into USDT to maintain a positive return;

its rate of return = 2yn/(x0*Pn + y0)-1=2*(P0Pn)^.5/(Pn+P0) -1 for the group 3 without considering the fee income.

Figure 3 Mining profit and loss of market maker group 3

4). Group 4 who want to hold both ETH and USDT for a long time participate in market making, hoping to convert into ETH to maintain a positive return;

its rate of return = 2yn/(x0*Pn + y0)-1=2*(P0Pn)⁰.5/(Pn+P0) -1 for the group 4 without considering the fee income.

Figure 4 Mining profit and loss of market maker group 4

5). Group 5 sushiswap single-sided solution: depositing ETH, borrowing equivalent SIL, and returning SIL when withdrawing.

its rate of return = (2xn - (y0)/Pn))/x0 -1= 2(P0/Pn)^.5 — P0/Pn -1, for the group 5 without considering the fee income.

However, the sushiswap single-sided solution not only cannot hedge impermanent losses, but the market maker’s assets will have the risk of returning to zero.when the price falls by 75%.

Figure 5 Mining profit and loss of market maker group 5

Based on the quantitative analysis of the above five groups, the profit and loss of automatic market makers is related to price. Group 1 bears the risk of price falling, group 2 bears the risk of price rising, and groups 3 and 4 face losses whether price rising or falling which is known as impermanent loss in the industry.

--

--

x3finance
x3finance

Written by x3finance

Free High Profit Excel AI Crypto Trading Bot including Okx and Binance

No responses yet