Impermanent loss and smart-contract risk
If you supply a liquidity pool with coins, you end up with less of whatever rose. The gap compared with simply holding grows the further prices drift apart, and it's usually not temporary.
Learning objective: After this lesson you can explain why a liquidity pool can lead to a permanent loss compared with simply holding.
In a liquidity pool you deposit two coins of equal value so others can swap between them. In return you get part of the swap fees.
How the Loss Arises
The catch: if one of the two coins rises sharply, people swap the other one for it. In the end you have more of the one that fell or stayed flat and less of the one that rose. Compared with simply holding, you've lost. An example: Emil puts ETH and dollars worth €1,000 each into a pool. If ETH doubles, simply holding would give him €3,000. In the pool he has about €2,830, so around €170 less, before the fees he's earned.
Why the Name Misleads
The name is misleading. The loss is only temporary if prices return to the old ratio. If they don't, and mostly they don't, it stays.
When It Pays Off
It can only pay off if the fees exceed this loss. With two coins that move very similarly, say two stablecoins, that can work. With strongly swinging pairs it often doesn't, and those are exactly the ones advertised most loudly.
Most pools work by the rule that the product of the two amounts stays the same. When the price changes, the amounts therefore shift automatically. You calculate the gap compared with holding like this: two times the square root of the price change, divided by (one plus the price change), minus one. If a coin doubles, the gap is about 5.7 percent. If it quadruples, about 20 percent. The same applies if it falls sharply.
Fees Against Shortfall
So your income is the difference between fees and this gap. Economically, this amounts to selling volatility. You earn in calm phases and lose on big moves. That's similar to selling options, and the pattern is the same: many small gains and rare large losses.
Smart Contract Risks
On top of that there's the risk of smart contracts, which has nothing to do with the market. That includes bugs in the code, manipulable price sources and rights to change contracts afterwards. Unlike market risks, you can't diversify this risk away by using several pools on the same platform. The only things that help are using different independent platforms and only putting in a small part of your money overall.
Summary
- The gap compared with holding stays if prices don't return.
- Supplying a pool is economically the same as selling volatility.
- Smart contract risk can't be diversified away, only limited.
Did you get it?
Why is the name impermanent loss misleading?
Because the loss is only temporary if prices return to the old ratio, and mostly they don't.
What business does supplying a pool correspond to?
Selling volatility: many small gains and rare large losses.
How do you deal with smart contract risk?
By using different independent platforms and only putting in a small part of your money.
Check your understanding
Your task
One coin in your pool rises to nine times its price relative to the other. Use the formula from the lesson to work out how far you fall behind simply holding: two times the square root of the price change, divided by one plus the price change, minus one. Then note how many percent of your deposit the pool would have to earn in fees over that time for the pool to beat holding.
Sources and further reading
- The official Uniswap v2 whitepaper describes the mechanics of the constant product formula and introduces the term impermanent loss as a consequence of diverging prices. View source ↗
Related
- Options: calls and putsStage 5
- DrawdownStage 3
- Loss aversionStage 3
- Matching questions for this stageQuestions