⚠️Impermanent Loss

Impermanent loss (IL) sounds scary, but it's quite simple once you see an example.

tl;dr

  • With all AMMs, if price moves too far away from your initial price, you could have been better off just hodl'ing πŸ’°

  • If you make enough fees (desired fees/spread) from a lot of back-and-forth trading, you can still be profitable

  • Volatility helps you make more fees! If prices keep bouncing up and down, you will make fees along the way. If prices return back to your starting price, your IL will be ~0 but the fees collected is profit πŸ€‘

Impermanent loss is best explained through a real example.

Example

Let's suppose we created a market-make order by depositing some SOL (β—Ž) and CryptoDuckz NFTs as liquidity πŸ¦†

We're prepared to buy up to 2 Duckz for 3 & 2 β—Ž each, and preapred to sell 2 Duckz for 4 & 5 β—Ž each (starting price = 4β—Ž, delta = 1β—Ž). Suppose Duckz are valued at 4β—Ž right now.

So we deposit 3 + 2 = 5β—Ž and 2 Duckz (2 x 4β—Ž = 8β—Ž).

Net worth: 13β—Ž

Scenario 1: price goes up πŸ“ˆ

If Duckz go up in value to 5β—Ž, traders might buy our 2 Duckz at 4 & 5 β—Ž. We now end up with our original 5β—Ž, along with the 4 + 5 = 9β—Ž we received.

Net worth: 14β—Ž

What if we just hodl'ed our Duckz initially? We would have the 5β—Ž, but 2 Duckz valued at 5β—Ž each, meaning we could have a value of 15β—Ž.

Could have had: 15β—Ž

Scenario 2: price goes down πŸ“‰

Duckz plummet to 1β—Ž (😬), we're forced to buy 2 Duckz for 5β—Ž total (3 + 2), now we're holding onto 4 Duckz at 1β—Ž each.

Net worth: 4β—Ž

What if we just hodl'ed? original 5β—Ž and 2 Duckz (1β—Ž each) = 7β—Ž.

Could have had: 7β—Ž

Now you can see how in both of these cases you lost money compared to the situation where you just HODLed. That's the essence of impermanent loss.

MM fees to the rescue πŸͺ™

In both of those examples, we assume there was no back-and-forth trading and you did not collect any fees.

Suppose you collected 0.1β—Ž on every 1 buy + 1 sell (round-trip).

If prices fluctuate back and forth, 30 round-trips occur, you would collect 3β—Ž in fees. If prices return roughly to the starting price (4β—Ž), your IL would be 0, so you would profit 3β—Ž!

Last updated