A new metric to measure permanent loss/win in AAM protocols

Discussion about Impermanent Loss (IL) is one of the biggest topic surrounding AMM protocols and different design exist to offset or try to limit IL.

What's astonishing for me is that nobody until now is try to measure permanent loss/win, resulting if you withdraw liquidity as a liquidity provider (LP).

This info is available on-chain and can be calculated for every LP on withdraw and for every pool.

My suspicion is that the result will be devastating and show that most pools and most LP lose money.

How to use this new Metrics?

  • Show LP on withdraw if they are going to be in permanent loss and if yes, how long they have to wait until enough fees are earned which possible offset the impermanent loss. (Thanks for 0xMaki for this idea)
  • Allow LP provider to limit permanent loss by auto-withdraw like a stop-loss order
  • Allow LP provider to maximize permanent win by auto-withdraw like a take profit order
  • Show LP Permanent Loss/Win of pools pre supply

How to measure Permanent Loss/Win for one LP

  1. On withdraw of liquidity
    Withdraw Value: save the token ratio and total value in ETH or $

  2. Look for the supply transaction
    Supply Value: save the token ratio back then and the value in ETH or $ back then

  3. Calculate Permanent Loss/Win
    Calculate Permanent Loss/Win = Supply Value - Withdraw Value

  4. Do some kind of normalization to make the it comparable to others LP

  5. Variation would be to calculate the Supply Value with the present value to compare it to Hodl

How to measure Permanent Loss/Win for a pool

  1. Sum up all Permanent Loss/Win from the start of the pool

How to measure virtual Permanent Loss/Win for a pool

  1. Sum up all Permanent Loss/Win from the start of the pool
  2. Sum up all Impermanent Loss/Win from the start of the pool until now
  3. Add these two Sum

How to measure Permanent Loss/Win and Impermanent Loss/Win for a LP

  1. Look for every AMM Protocol used
  2. Calculate Permanent Loss/Win
  3. Calculate Impermanent Loss/Win
  4. Sum up all PL/W and IL/Win for a LP

2 Replies to “A new metric to measure permanent loss/win in AAM protocols”

  1. This is a great idea! I was wondering a few questions: 1) how you would estimate the fee rate (moving average of the last 24hrs of fees)? 2) if the fees are paid out via token, how do you estimate the price of the token assuming that you receive the token at some time in the future and the token price is volatile?

    1. I don’t know if I understand your questions right. But I take this an input.

      1. I’m missing a metric for liquidity efficiency. Because if you are in a big pool with the same traffic the same stake will earn less fees than in a small pool with the same traffic.
      2. I really don’t know how IL is defined exactly. Some calculate IL based on math, but then you do not add the earned fee. Others call IL what you see if you look at the pool so its with earned fees. But anyway, you can’t calculate future values and don’t have to. Or do you mean “fees are paid out via token” farming?

Leave a Reply

Your email address will not be published. Required fields are marked *