Liquidity Lu saysImpermanent loss is the gap between holding and providing to a v2-style AMM: IL = 2√r/(1+r) − 1 where r = priceNew/priceOld — symmetric, monotone, brutal at extreme moves.
Impermanent loss (IL) is the underperformance of being an AMM LP versus just holding the two tokens. The closed form for v2-style pools is IL = 2√r / (1+r) − 1 where r is the price ratio at exit vs entry. At r=1: IL=0. At r=2: ≈ −5.7%. At r=5: ≈ −25%. At r=100: ≈ −80%.
It is "impermanent" only if the price reverts; otherwise the loss is realized at withdrawal. Fees earned must exceed IL for LPing to pay. The demo computes IL across a range of price ratios.
Power-ups you unlock
IL = 2√r/(1+r) − 1 for v2-style pools
At r=1: zero IL; at r→∞ or 0: IL → −100%
Symmetric: r=2 and r=0.5 give the same IL
Realized at withdrawal; "impermanent" only if price reverts
Fees earned must beat IL for net positive LPing
The Sandwich Bot attacks — common mistakes
Calling IL a "loss" without comparing to the hold strategy
Forgetting fees can outweigh IL in high-volume pools
Assuming v3 IL follows the same formula (it depends on range)
Ignoring IL in single-sided staking pools (no IL there)
Boss battleCompute IL at price ratios 1x, 2x, 5x, and 10x and confirm symmetry between r and 1/r.