CoinSlap
Menu

DeFi guide

Liquidity pools and impermanent loss, worked through

Follow a two-asset pool through a price change and compare the resulting position with simply holding its original tokens.

How a full-range pool reprices

Consider an idealized constant-product pool with 1 ETH and 1,000 stablecoins worth $1 each. ETH initially trades at $1,000. Ignoring fees, trades preserve the product of the reserves. Arbitrage trades change the asset mix as outside prices move. A liquidity provider owns a fraction of those changing reserves.

Compare both positions at the same final price

If ETH doubles to $2,000 and the pool matches that price, the reserves become approximately 0.7071 ETH and 1,414.21 stablecoins. Their combined value is $2,828.43. Holding the original assets would be worth $3,000. The gap is about 5.72% of the hold position, even though both positions gained in dollars.

Check the model before applying it

Fees can offset some of the gap, and incentives add another return stream. Withdrawing at the changed relative price locks in the different mix. Concentrated ranges, unequal pool weights, stable-swap curves and a moving stablecoin price require different models.

Sources and further reading

Reviewed . Inspect liquidity pools and fee observations