What is Impermanent Loss in Crypto And How to Avoid it   (2024)

As an investor actively into decentralized finance (DeFi) for passive income streams, the term Impermanent Loss would ring a bell to you. If you’re new to DeFi and willing to explore its investment opportunity, you should be aware of the risk involved.

Contents

Understanding Liquidity PoolsWhat is an Automated Market Maker?How to Calculate Impermanent LossUnderstanding Impermanent Losses and How it HappensHow To Prevent Impermanent LossChoosing Less Volatile PairsSticking With StablecoinsChoosing Tokens With High Transaction FeesExplore More Liquidity PoolUsing One Side Staking PoolConclusion

Impermanent loss in crypto happens when there’s a significant change in the value of your tokens in a liquidity pool against the initial worth at the time of deposit. As the name suggests, impermanent losses are considered temporary losses, as the token can return to its initial value, and the losses cancel out.

Before going deep into explaining the concept of impermanent loss, there are specific terms you need to understand to thoroughly comprehend what impermanent losses are, which include Liquidity pools and Automated Market Makers.

Understanding Liquidity Pools

Liquidity pools are the backbone of how DeFi works. A liquidity pool is a pool where users deposit tokens that are controlled by an automated smart contract. The tokens deposited in the pools will be of equal ratio, that is, 50% of token A and 50% of B.

The main proposition of a Liquidity pool is to facilitate transactions on decentralized cryptocurrency exchanges (DEX) faster than in the case of centralized exchanges like Binance, where transactions can be delayed.

Investors who fund a liquidity pool will receive rewards from transactions made with the token in the pool, and they are called liquidity providers. Without them, decentralized exchanges will be illiquid, and users won’t be able to trade on them.

What is an Automated Market Maker?

In traditional cryptocurrency exchanges, for a trade to be executed, there must be a match in the price a buyer is willing to purchase an asset and the price a seller is willing to sell the assets; without a match, there won’t be any trade. This process is usually slow and takes a long period of going through order books to find complementary prices for both parties.

Automated market makers (AMM) are associated with DeFi. AMM is permissionless and relies on a liquidity pool, approving trades automatically without going through the traditional processes of finding matching buyers and sellers to execute a trade. AMM relies on a mathematical calculation to determine the prices of tokens in the liquidity pool.

The formula used for calculating used in AMM proposed is:

tokenA_balance(p) * tokenB_balance(p) = k

However, the most popularized formula is X * Y = K.

Where X represents token A, and Y represents token B. The value of both assets must always be a constant K. If there’s an increase in the price of token A, then the price of token B reduces to maintain the constant value K. If token B increases, the value of A also decreases to maintain K. However, the K changes in value when the pool needs to expand and accommodate more liquidity providers; afterward, it will have a new constant.

How to Calculate Impermanent Loss

To understand why token holders and investors fund liquidity pools to be beneficial and why they risk the chances of facing impermanent losses, let’s go over how decentralized exchanges like Uniswap, Curve Finance, and Balancer operates.

Liquidity pools are essentially pots of investment where token holders/ investors get to deposit equal amounts of tokens. 50:50 of token A and likewise for token B. These tokens are mostly ERC-20 tokens, as most DeFi is built on Ethereum.

To put this into perspective, rather than token A and B, let’s use the example of Ether (ETH) and Tether (USDT). Assuming 1 ETH is the equivalent of 100 USDT, then to deposit into a Uniswap liquidity pool, the liquidity provider will put in 50% of both.

In this context, the liquidity provider has 1 ETH and 100 USDT. If the total worth of the Uniswap ETH/USDT pool is worth 20 ETH, that is, 10 ETH and 1000 USDT, then the liquidity provider owns 10% of the liquidity pool’s token. Here’s the calculation: 1 ETH + 100 USDT = 2 ETH = 10% of 20 ETH.

If Uniswap pays a fee of 0.3 for every transaction on the pool to the liquidity provider and the total volume of trades so far on the pool hits a trading volume of 2000 ETH, the liquidity provider will receive 0.6 ETH. The calculation is 0.3 of 2 ETH (10% of liquidity provider) = 0.6 ETH. Which invariably is 0.3ETH and 30 USDT earned from the transaction fee, so by the time of withdrawal, the liquidity provider now has 1.3 ETH and 130 USDT, making them profitable.

This is assuming the prices for ETH and USDT were constant throughout the period in the liquidity pool before the withdrawal.

Understanding Impermanent Losses and How it Happens

As mentioned, Impermanent loss in crypto happens when there’s a significant change in the value of your tokens in a liquidity pool against the initial worth when first deposited. These changes in the value of crypto tokens are due to the volatile nature of the market. Practically, impermanent losses happen both ways, whether the market goes up or down.

Using the example earlier, if the value of ETH had risen to the equivalent of 300 USDT, which is 3X more. The change in price causes an imbalance in the worth of assets in the pool, and to level it out, arbitrage trading occurs to keep the value of the pool at 50:50. After the arbitrage trades, the pool is worth 30 ETH from the initial 20 ETH. Since the liquidity provider owns 10% of the pool, they now have 3 ETH.

Assuming the liquidity provider held on their asset would have 400 USDT since one ETH is now worth 300 USDT, and they have 100 USDT. This leaves the liquidity provider with 100 USDT in the loss.

Note that impermanent losses don’t account for the profit made through trading fees which might cover the potential losses. In this situation, the total transaction fees received by the liquidity provider is 200 USDT; then, with the impermanent loss of 100 USDT taken out, there Is a profit of 100 USDT.

Also, an impermanent loss isn’t counted until after withdrawal since the prices of the pool’s assets can return to their initial value.

How To Prevent Impermanent Loss

While impermanent losses might seem non-negligible, there are ways to avoid exposure. Here are some of the best approaches to avoiding these types of losses:

Choosing Less Volatile Pairs

The simplest method of avoiding impermanent losses is to keep away from tokens with high volatility. The volatile nature of the cryptocurrency market is responsible for the rapid price movement, leading to loss.

As a liquidity provider or a potential liquidity provider, the best way to offset this is by depositing into pools with tokens known to have more stability in price movements. Examples of such tokens include an ETH-based pair, a stablecoin pair, and ETH-based pair and wrapped tokens.

Sticking With Stablecoins

Choosing Stablecoin pairs is an excellent way to offset the impermanent loss. Stablecoins are cryptocurrencies known to give relatively stable prices and are backed by real-world assets like USD dollars and gold.

Since there’s barely any room for volatility in these cases, there’s a slight chance for arbitrage trading opportunities leading to impermanent losses. With this, a liquidity provider doesn’t fear the risk of rapid movement in the prices of tokens.

Choosing Tokens With High Transaction Fees

Another way to avoid impermanent loss is to remember that the losses aren’t permanent since tokens can return to their initial value when purchased.

Instead, as a liquidity provider, it can be helpful to focus on token pairs that generate high transaction fees to counterbalance the loss and give a good return. Importantly, treat this as an investment vehicle.

Explore More Liquidity Pool

One of the best ways to avoid impermanent losses is by exploring liquidity pools with more flexibility. A significant cause of impermanent losses can be linked with the 50:50 ratio most liquidity pools offer, where a change in token price affects the pool’s balance.

Other types of liquidity pools offer a different and more flexible system for depositors that doesn’t rely on a 50:50 ratio.

For a decentralized platform like Balancer, liquidity providers don’t stick with the 50:50 ratio; instead, they can choose the ratio of how they want to deposit in the pool. Here’s how it works in a Balancer Pool: a liquidity provider can decide to invest 95% in token A while 5% in token B. Doing this reduces the impact of the change in the price value of an asset.

There are also market-neutral AMM such as SwaapFinance also being developed to prevent liquidity providers from losing to arbitrage traders. This market-neutral AMM takes a distinct approach to solving this problem.

Billions of dollars are extracted from Liquidity pools by arbitrageurs every year, resulting in the equivalent Impermanent Loss for LPs.

What if those $ were kept by LPs?

Let’s see how @SwaapFinance is making sure LPs aren’t drained by arbitragers 🧵 pic.twitter.com/I5BzJfJzZk

— Louround 🥂 (@Louround_) May 18, 2023

Using One Side Staking Pool

While this isn’t widely known yet, liquidity providers can deposit into pools offering just one token. These types of AMM pools don’t hold the risk of impermanent losses since there won’t be arbitrage trading in this type of pool. In addition, liquidity providers will receive a certain percentage fee from every transaction using the pool’s token. This way, being a liquidity provider isn’t a loss or downside.

This way, the liquidity provider is wholly exposed to the token’s volatility and earning fractions of transaction fees. If the token rises, the liquidity provider profits from it. Bancor is an example of an exchange offering one-sided liquidity pools.

Conclusion

Impermanent losses in crypto are risky and can jeopardize the potential earning of liquidity providers in any pool. A person planning to be or is a liquidity provider must first be aware of the risk and follow the solutions listed above to best evade it. Impermanent losses can’t be avoided but curbed.

What is Impermanent Loss in Crypto And How to Avoid it   (2024)

FAQs

What is Impermanent Loss in Crypto And How to Avoid it  ? ›

Impermanent loss is a “paper loss” unless you close your position. Earned swap fees and liquidity mining tokens can help offset an impermanent loss. The number (and ratio) of tokens you hold in a liquidity pool changes as swaps occur, sometimes leading to impermanent loss.

How do you fix impermanent loss? ›

How to reduce impermanent loss in AMMs
  1. Choose a single asset pool. One-sided pools only need you to provide liquidity for one token. ...
  2. Start small and tread carefully. ...
  3. Trade stablecoin pairs. ...
  4. Go with flexible liquidity pools. ...
  5. Offset the loss with trading fees. ...
  6. Be patient. ...
  7. Trade low volatility pairs.
Jun 20, 2022

Can impermanent loss be reversed? ›

If the asset prices return to their original levels, the impermanent loss can be reversed. However, if the funds are withdrawn from the liquidity pool before the assets' prices return to their original levels, the impermanent loss becomes permanent.

How does impermanent loss affect yield farming? ›

Impermanent loss is the difference between the initial value of funds deposited into a liquidity pool and their subsequent value. Impermanent loss can impact yield farming in a variety of ways. For example, rapid token price shifts may cause deposited funds to lose most of their value.

Does staking cause impermanent loss? ›

Typically, staking does not result in temporary loss as demonstrated by liquidity provision. Liquidity providers experience impermanent loss as a result of dynamic asset price fluctuations in liquidity pools.

How to avoid impermanent loss? ›

Another way to reduce your exposure to impermanent loss is to split your crypto assets in half. Only one portion should be invested in a liquidity pool. Then, hold the other half to cut your potential impermanent loss by two. Since only half of your assets are invested in the pool, fees and benefits are cut in half.

What is an impermanent loss for dummies? ›

Impermanent loss is better defined as an opportunity cost. Put simply, impermanent loss occurs when you provide liquidity to a given pool and the price of your assets in the pool changes. This is much easier to understand with an example.

What is impermanent loss and how do you avoid it? ›

Impermanent loss is the difference between what your value would have been if you had held your crypto assets and the value of assets you put into a liquidity pool instead. If the value would have been higher if you just held your crypto in your wallet rather than providing liquidity, then you have an impermanent loss.

What is an example of an impermanent loss? ›

For example, if the value of the assets in the pool decreases by 10%, but the value of the LP tokens only decreases by 5%, the user will have incurred a 5% impermanent loss. It indicates how much more the value of your assets would be if you just HODL instead of providing liquidity.

Can you lose money with impermanent loss? ›

In the simplest terms, impermanent loss occurs when you deposit assets into a pool and suffer a loss when you withdraw them at a later date compared to just holding these assets throughout this period. As such, you don't actually have to lose money for impermanent loss to occur.

What is risk of impermanent loss? ›

Impermanent loss is a financial risk that can occur when an investor provides liquidity to an automated market maker (AMM) platform in a decentralized finance (DeFi) ecosystem. This type of risk is caused by price changes in the crypto market and the way automated market makers (AMMs) are designed.

What is impermanent loss protection? ›

What is impermanent loss protection? Impermanent Loss Protection (ILP) is a type of insurance that protects liquidity providers from unexpected losses. Liquidity provisioning is only profitable on typical AMMs if the benefits of farming surpass the cost of temporary loss.

How to calculate impermanent loss? ›

The Basic Formula to Calculate Impermanent Loss

It is based on the change in price ratio (k) of the two assets in the liquidity pool. This formula provides a more direct calculation, where: k is the price ratio of the two assets after the price change, divided by the price ratio before the price change.

Do I lose my crypto if I stake? ›

Staking rewards (as well as staked tokens) can lose value when prices are volatile. Your cryptocurrency can be slashed (partially confiscated) for violating network protocols. When many users receive staking rewards, there is risk of cryptocurrency inflation.

Can I lost my coin in staking? ›

If you are thinking about crypto staking as just crypto's version of a savings account, then it's easy to see how you might be in for a rude surprise. Unlike with a savings account, you can actually lose money on your staked crypto.

Does staking crypto lock the price? ›

If you're staking your cryptocurrency in a program that locks you in, you wouldn't be able to sell during a downturn. The staking platform you choose could offer lucrative annual returns, but if the price of your staked token falls, you could still incur losses.

What is impermanent loss and how to avoid it? ›

Impermanent loss is the difference between what your value would have been if you had held your crypto assets and the value of assets you put into a liquidity pool instead. If the value would have been higher if you just held your crypto in your wallet rather than providing liquidity, then you have an impermanent loss.

How to hedge against impermanent loss? ›

Assuming current price is 1500. As can be seen the impermanent loss does not behave linearly but in a “near” range to the current price, the behaviour is similar to linear. To hedge the impermanent loss, based on this simplified example, user can buy put option at strike 1500 (equal to current price) and size 1.1.

How impermanent loss be mitigated in an AMM? ›

To mitigate impermanent loss and incentivize liquidity providers, decentralized finance AMMs use a stakeholder model that pays liquidity providers a percentage of all trading fees and rewards users with platform-specific tokens that can become highly valuable assets in their own right.

Top Articles
Latest Posts
Article information

Author: Virgilio Hermann JD

Last Updated:

Views: 5550

Rating: 4 / 5 (61 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Virgilio Hermann JD

Birthday: 1997-12-21

Address: 6946 Schoen Cove, Sipesshire, MO 55944

Phone: +3763365785260

Job: Accounting Engineer

Hobby: Web surfing, Rafting, Dowsing, Stand-up comedy, Ghost hunting, Swimming, Amateur radio

Introduction: My name is Virgilio Hermann JD, I am a fine, gifted, beautiful, encouraging, kind, talented, zealous person who loves writing and wants to share my knowledge and understanding with you.