šŸ”™Variation and Returns

Uniswap and similar protocols use the product of the reserves to determine quotes for traders. Fortunately, when calculating the square root of this product, the geometric mean, we can measure the growth of the LP reserves. Since liquidity shares from the pool increase only when LPs add additional liquidity to the pool, the growth of the geometric mean of the reserves due to trading fees belongs completely to LPs.

In which,

  • We assume an exponential function because we assume continuos compounding interest.

To calculate our return we must derive the previous equation and subtract 1:

As explained on Staking & Impermanent Loss, the position value at any point on time is given by the following equation:

And, also, according to Related Pricing, the ratio of the two reserve quantities can be obtained by:

Hence,

Therefore, using the original formula from Staking & Impermanent Lossin function of the previous equations we can obtain:

Last updated