Cointime

Download App
iOS & Android

What is Impermanent Loss?

Validated Venture

Impermanent Loss is the difference in asset value between holding assets in the wallet (HODL) and holding assets in the liquidity pool.

Impermanent Loss is most common in traditional pools where the liquidity provider (LP) must provide both assets in equal proportions and one of the assets is volatile in comparison to the other.

Impermanent Loss is exemplified by Uniswap’s DAI/ETH liquidity pool, where both tokens are represented in a 50:50 ratio:

  1. Stake in a pool of 1 ETH and 1,000 DAI.
  2. After a week, 1 ETH is equal to 2,000 DAI.
  3. If we had stored 1 ETH and 1000 DAI, the profit would be 50% (the value of 1000 DAI would not change, but the price of 1 ETH would increase to 2000 DAI).
  4. Staking tokens in the AMM pool on Uniswap yields less than 50% profit than simply storing assets.

Impermanent or unrealized losses are so named because they are not fixed until the liquidity tokens are withdrawn from the pool. In the preceding example, there are no impermanent losses if the price of ETH returns to the original 1,000 DAI and funds are withdrawn thereafter.

Uniswap, SushiSwap, and other similar AMMs use a simple formula:

x ∗ y = k

x is the number of tokens for asset A;

y is the number of tokens for asset B;

k is the so-called constant product of the pool — this value does not change.

Example of the Uniswap exchange DAI/ETH liquidity pool. Data: The Chain Bulletin.

The contract held tokens with an approximate value of $153.5 million — 29,116.6 WETH and 76.7 million DAI.

Using the formula above, we calculate the value of k for this pool at this time:

29 116,63 ∗ 76 737 921,22 ≈ 2,23 ∗ 10¹²

k changes only when users add or withdraw liquidity, or when transactions are charged a fee (for example, 0.3% in the case of Uniswap). These funds are added to the total liquidity in the pool.

Impermanent Loss in the classic pools

Example of Uniswap exchange DAI/ETH liquidity pool:

  1. When we stack 1 ETH and 100 DAI, the liquidity provider’s share is 10%.
  2. The pool contains 10 ETH and 1000 DAI.
  3. A week later 1 ETH trades for 200 DAI.
  4. There are no commissions in the pool.
  5. We calculate the non-permanent losses.

To determine the exact share in the pool (in each token), you can use Uniswap Analytics and SushiSwap Analytics platforms or third-party tools Croco Finance, Growing and APY.vision

Why should pool commissions be considered?

Commissions are an integral element of the economics of AMM-based platforms.

The higher the commission, the lower the non-permanent loss. When a certain amount of trading fees is reached, participation in the pool generates more profit than holding assets.

Let’s take the preceding example above and add a component in the form of commission:

  1. We steak in a pool of 1 ETH and 100 DAI;
  2. Our steak share is 10% (in a pool of 10 ETH and 1000 DAI);
  3. After a week, 1 ETH trades for 200 DAI;
  4. Commissions: 1 ETH and 100 DAI.

The non-permanent loss, excluding trading commissions, is 17.179 DAI. Because we have a 10% stake in the pool, we are entitled to 0.1 ETH and 10 DAI of the accumulated commissions. Given that ETH is currently trading at 200 DAI, 0.1 ETH is worth 20 DAI, and the total profit from commissions is 30 DAI. The total is thus $312,821 ($282,821 + $30).

Insert these new numbers into the formula — stackingUSD/storageUSD — 1:

312,821/300–1 ≈ 0,042 ≈ 4,2%

In this example, the non-permanent loss is -12,821 DAI (17,179–30). This is not a loss but a 4.2% gain because assets are held in the pool rather than held individually.

Does Impermanent Loss work in other pools?

Curve is a decentralized stabelcoin and tokenized bitcoin exchange based on an automated market maker mechanism. Its pools contain only assets that must have the same or comparable value: stabelcoins (USDC, DAI) or tokenized bitcoins (renBTC, wBTC). The risk of volatile losses in such pools is minimal.

Balancer provides token pools with arbitrary token ratios. For example, if a liquidity provider wants to supply a large number of specific tokens, it can select a pool in which those coins are weighted more heavily than others (the proportions can be 80/20 or even 98/2). In addition, this model minimizes non-permanent loss. The greater a token’s share of a pool, the smaller the difference in outcomes between holding a token and providing liquidity in that token.

Bancor version 2 pools automatically adjust token weights based on price oracle data. This allows you to reduce volatile losses even in pools containing volatile assets.

How to calculate Impermanent Loss easily?

Understanding Impermanent Loss is necessary for any user of AMM platforms. You can make your own IL calculations using the calculator at dailydefi.org (based on Uniswap formulas).

In general, regardless of price movements, AMM protocol users are always exposed to the risk of foregone costs. In comparison to custody, when asset prices rise, a participant’s position grows less; when prices fall, they lose more.

Trading commissions and income farming come to the rescue, helping to neutralize volatile losses so that participation in the AMM pool yields more profit than simply holding assets.

Get the latest news here: Cointime channel — https://t.me/cointime_en

Comments

All Comments

Recommended for you

  • UAE to introduce legal framework for DAOs

    The United Arab Emirates is focusing on introducing a legal framework for decentralized autonomous organizations (DAOs) in the Ras Al Khaimah Digital Asset Oasis (RAK DAO), a free economic zone dedicated to digital assets. Law firm NeosLegal and RAK DAO announced that the new system will be launched and discussed at the DAO Legal Clinic on October 25th. Irina Heaver, a partner at NeosLegal, said that the framework is expected to clarify how DAOs can remain legally compliant, and she believes this will have a significant impact on decentralized governance in the UAE and the wider Web3 ecosystem. The announcement emphasizes that the legal structure will clarify tax obligations and benefits. It will also establish property rights for on-chain and off-chain assets and provide legal protection for the founders, members, and contributors of the DAO from personal liability. The legal framework will also enable DAOs to enter into legally binding contracts and establish guidelines for resolving internal and external disputes.

  • Data: U.S. public debt surges in the past three weeks, increasing by $455 billion

    On October 18th, according to Bloomberg terminal data, as of October 15th, 2024, the total amount of US public debt reached a historic high of approximately $35.75 trillion. In just the past three weeks, US debt has increased by $455 billion.

  • Montenegro to determine Do Kwon's extradition fate this weekend

    According to Cryptoslate, the Minister of Justice of Montenegro, Bojan Božović, confirmed that a decision has been made regarding the extradition of Do Kwon, co-founder of Terraform Labs, and the extradition agreement will be signed before the end of this week. This decision was made after a long and controversial legal process that lasted for several months. Božović did not provide further comments on the details of the case, nor did he disclose where Kwon will be extradited to. He said, "As Minister of Justice, I have no further comments other than those already ruled by the Supreme Court."

  • Shenyu: The widespread existence of blind signature issues provides hackers with opportunities to take advantage of, and the problem must be solved

    Bitfish (@bitfish1) posted on X platform, stating that when there are security risks on the front end, hardware wallets should ensure asset security as the last line of defense. However, at present, blind signature issues are prevalent, which provides hackers with opportunities. This problem must be solved.

  • Deutsche Börse Clearstream: D7 platform has issued over 10 billion euros in digital bonds

    Deutsche Börse's Clearstream announced that its digital securities platform D7 has issued over 10 billion euros (11 billion US dollars) in digital bonds. Currently, D7 is mainly used for two types of issuance, namely large digital bonds and structured products. From a technical perspective, the D7 platform uses DAML smart contracts, and the latest version of DAML supports the Canton blockchain. Previously, Clearstream also participated in a practical experiment using the French wholesale central bank digital currency CBDC for settlement.

  • US CFTC: Federal court was "wrong" to allow Kalshi to launch prediction market

    Lawyers from the US Commodity Futures Trading Commission (CFTC) argued in a brief submitted to an appeals court that a federal judge "wrongly" allowed Kalshi to list and trade election contracts, and reiterated many of its arguments made in a lower court. Last month, a judge ruled that the CFTC could not prohibit Kalshi from listing election contracts. The regulatory agency applied for a stay to prevent the company from launching the product before the appeal's outcome, but the court's judge ruled that the CFTC failed to prove irreparable harm would be caused.

  • The Trump family will receive 75% of WLFI's net income and will not bear any liability

    The Trump family's encrypted project World Liberty Financial (WLF) has released a 13-page "World Liberty Gold Paper" document that details the project's mission and token allocation plan. The document shows that the Trump family will receive 75% of the project's net income without any liability.

  • US spot Bitcoin ETFs saw a net inflow of $470 million yesterday

    According to TraderT's monitoring, the net inflow of the US spot Bitcoin ETF was $470 million yesterday.

  • Careers in Crypto: 5 Insights for 2024

    In an overwhelming job market, leaning into personal networks and connections are more important than ever. Emily Landon, CEO of The Crypto Recruiters, outlines what is happening in the crypto job market and how you can position yourself or your company in 2024.

  • Crypto Needs to Radically Rethink Token Distribution

    The prevailing “low float, high FDV” model can generate significant initial interest in project but benefits tend to disintegrate in the long-term, says Lava Network's Ethan Luc.