Непостійна втрата
Impermanent loss – це тимчасове зменшення вартості активів, що утримуються постачальником ліквідності в пулі автоматичного маркет-мейкера (AMM), коли ціна внесених активів змінюється відносно один одного.
Impermanent loss виникає, коли ціна токенів, внесених у пул ліквідності, змінюється відносно того моменту, коли вони були внесені. Ця втрата є «тимчасовою», оскільки постачальник ліквідності теоретично може повернути свою початкову вартість, якщо ціни активів повернуться до їхнього початкового співвідношення. Втрата реалізується лише тоді, коли постачальник ліквідності виводить свої активи.
Impermanent loss є основною концепцією у світі децентралізованих фінансів (DeFi), зокрема в контексті автоматизованих маркет-мейкерів (AMM), таких як Uniswap і Curve. Ці AMM дозволяють користувачам торгувати токенами без посередників. Постачальники ліквідності вносять токени в пул і натомість отримують комісію за торгівлю.
Величина impermanent loss залежить від розбіжності цін активів у пулі. Чим більша зміна ціни, тим більша impermanent loss. Хоча impermanent loss може бути значним, постачальники ліквідності також заробляють комісії, які можуть компенсувати або навіть перевищувати втрати. Розуміння impermanent loss має вирішальне значення для всіх, хто бере участь у пулах ліквідності DeFi.
graph LR
Center["Непостійна втрата"]:::main
Rel_automated_market_maker["automated-market-maker"]:::related -.-> Center
click Rel_automated_market_maker "/terms/automated-market-maker"
Rel_automated_market_maker_amm["automated-market-maker-amm"]:::related -.-> Center
click Rel_automated_market_maker_amm "/terms/automated-market-maker-amm"
Rel_decentralized_exchange_dex_order_book_aggregation["decentralized-exchange-dex-order-book-aggregation"]:::related -.-> Center
click Rel_decentralized_exchange_dex_order_book_aggregation "/terms/decentralized-exchange-dex-order-book-aggregation"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧠 Перевірка знань
🧒 Простими словами
Imagine you lend two different toys to a friend, expecting to get them back plus some extra treats. If one toy suddenly becomes much more popular (valuable) than the other, your friend might trade them around, leaving you with more of the less popular toy when you get them back, making your collection worth less than if you'd just kept them.
🤓 Expert Deep Dive
The mathematical formulation of Impermanent Loss for a constant product AMM (like Uniswap V2) is derived from the invariant x y = k. Let x0 and y0 be the initial quantities of asset X and Y deposited, and P0 = y0 / x0 be the initial price. At a later time, let the price be P = y / x. The quantity of assets held by the LP after rebalancing is x = sqrt(k / P) and y = sqrt(k P). The value of the LP's holdings is V_lp = x P + y. The value of simply holding the initial assets is V_hold = x0 P0 + y0. Impermanent Loss is IL = (V_hold - V_lp) / V_hold. This can be expressed as a function of the price ratio r = P / P0. For example, if r = 2 (price doubles), IL ≈ 5.7%. If r = 3, IL ≈ 11.1%. If r = 0.5 (price halves), IL ≈ 5.7%. The formula highlights that IL increases quadratically with the price deviation. Edge cases include pools with very low liquidity where arbitrage can cause rapid price swings, exacerbating IL. Strategies to mitigate IL include providing liquidity in stablecoin pairs or utilizing AMMs with different bonding curves (e.g., Curve Finance's stableswap invariant).