β οΈ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β
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β!
That's why it's called "impermanent" loss. It's only a loss if you sell when prices diverge significantly from the starting point.
If prices return to where they started, you lose nothing.
Last updated