āStaking & Impermanent Loss
Last updated
Last updated
One of the main issues with liquidity providing on an LP is impermanent loss. IL is the loss incurred by a market making position vs. keeping the initially allocated amounts fixed. Another approach of IL could be referred as unrealized profit or loss (uPNL): this a more accurate way to call such profit or loss, as it only becomes realized if one chooses to sell out of a position which has changed in value.
Given an initial price , the value of of a 2-asset portfolio is initially given by:
On the other hand, a new value after the first transactions is given by:
Given a new value and new prices, the equation will still be the following:
The IL or uIL is the delta between the portfolio change of the market making portfolio and the change in value of a portfolio of assets with fixed quantities. This is the loss on top of a mark to market move of an equivalent fixed-quantity portfolio:
Which simplifies to:
Also, we will call the ratio between the current and previous price given a fixed-period of time :
Hence, unrealized impermanent loss will be given by the following equation: