Difference between revisions of "Impermanent loss"

Jump to navigation Jump to search
12 bytes removed ,  14:45, 24 April 2022
no edit summary
Line 14: Line 14:


== Why it happens ==
== Why it happens ==
Liquidity pool based AMMs (like [[Uniswap]], [[Pancakeswap|PancakeSwap]] or [[Sushiswap]]) all work under one simple formula: x * y = k, where x and y are the amount of tokens in the pool, and k is their product, which has to remain '''constant'''.
Liquidity pool based AMMs (like [[Uniswap]], [[PancakeSwap]] or [[Sushiswap]]) all work under one simple formula: x * y = k, where x and y are the amount of tokens in the pool, and k is their product, which has to remain '''constant'''.
Understanding this mechanism is pivotal to understand why impermanent loss really happens.
Understanding this mechanism is pivotal to understand why impermanent loss really happens.
Since k, the product of the two pool reserves, must remain constant, whenever the price of one token changes relatively to the other, so will the reserves. In particular, the pool always tries to keep a balanced proportion of the two assets: when the price of token A drops relatively to token B, there will be more of token A and less of token B in the pool. Thus a liquidity provider, which owns a portion of the pool, will see its token A holdings grow and its token B holdings shrink. Since A's price has dropped, he's now suffered impermanent loss.
Since k, the product of the two pool reserves, must remain constant, whenever the price of one token changes relatively to the other, so will the reserves. In particular, the pool always tries to keep a balanced proportion of the two assets: when the price of token A drops relatively to token B, there will be more of token A and less of token B in the pool. Thus a liquidity provider, which owns a portion of the pool, will see its token A holdings grow and its token B holdings shrink. Since A's price has dropped, he's now suffered impermanent loss.
66

edits

Navigation menu