Impermanent losses explained | Part2 | DeFi: In & Out

Impermanent losses explained | Part2 | DeFi: In & Out

Impermanent losses explained | Part2 | DeFi: In & Out

Impermanent losses explained | Part2 | DeFi: In & Out

Impermanent losses explained | Part2 | DeFi: In & Out

Read Time: 4 minutes

Many persons are aware of this scenario, where they suffer the loss of the tokens, impermanent losses are associated with Automated Market Makers and might be seen as one of the major demerits of AMMs. Impermanent losses are explained in this article of the series, Defi: In & Out.

Impermanent Losses: The ugly face of AMMs

While the security of DeFi protocol as well as Smart Contracts is a huge concern that needs to be resolved, there are a few flaws in DeFi that are equally responsible for preventing DeFi from expanding its boundaries rapidly.

One such flaw is what we know as IMPERMANENT LOSS.

Impermanent losses explained

To begin with, Impermanent Losses are associated with Automated Market Makers and might be seen as one of the major demerits of AMMs.

Consider a situation where instead of holding your crypto assets in your own wallet, you decide to provide liquidity to a pool but realize that you have actually lost a considerable amount of your tokens.

Impermanent losses in crypto
Source : r/Uniswap Reddit

Well, that’s not at all a desirable scenario for any Liquidity Provider but quite unfortunately Automated market makers are susceptible to such scenarios, i.e., Impermanent Loss.

The occurrence of Impermanent Loss

Impermanent loss is the temporary loss of funds that essentially occurs due to the volatility in the price of a particular token in the pool.

In simpler terms, it’s the loss that liquidity providers face when they supply their tokens to a pool and one of the assets is comparatively more volatile than the other.

Let’s break it down to understand the mechanism effectively:

  • A Liquidity provider, Bob decides to provide his crypto assets, ETH/USDT to a Uniswap pool. Since Uniswap follows a constant product market maker formula, Bob mus provide an equal value of both tokens.
  • Let’s consider Bob provides 10 ETH and 10000 USDT tokens to the pool, thus locking up a total value of $20000 in the pool. (considering 1 ETH = $1000 & 1 USDT = $1).
  • Now, the price of ETH suddenly goes up from $1000 to, let’s say, $2000(an extremely hypothetical scenario though ). 😃
  • However, since the pool is not connected to the external world, it’s not really aware of the rise in price. This means, the pool still reflects the old price of ETH, thus creating an incredibly profitable arbitrage opportunity.
  • This is where arbitrageurs play a significant role.
  • Since Uniswap follows a constant product market maker formulae, in order to raise the price of ETH in the pool(to match the actual price of $2000), the quantity of ETH must decrease.
  • Hence arbitrageurs simply buy the cheap ETH from the pool. In order to match the actual price of ETH, they take 5 ETH from the pool and provide 5000 USDT.
  • Now the pool has 15000 USDT and 5 ETH and the total value locked becomes $25000.
  • However, if BOB didn’t provide liquidity to the pool and simply kept the asset in his own wallet, he would have had a total value of $30000 after the rise in ETH price.

10000 USDT + 10 ETH * $2000 = $30000

  • Therefore, although there is an extensive rise in the price of ETH, Bob faces an Impermanent loss of $5000.

The Impermanent Nature of the Loss

The loss is impermanent because Bob has not withdrawn his liquidity yet and there is a possibility for the price to be stable again and losses go back to 0.

However, if he withdraws the liquidity at this point, the loss of $5000 becomes Permanent.

Battling against Impermanent Losses

Impermanent losses are indeed an extremely troublesome scenario. The bigger the price change or volatility of an asset, the higher the chances of impermanent losses.

Various DeFi protocols have now started addressing the Impermanent loss issue and are coming up with different solutions to mitigate the losses of Liquidity Providers.

Bancor claims to have effectively solved the problem by compensating the liquidity providers with BNT tokens to cover their losses due to impermanent loss.

Source : Twitter

However, some of the most renowned personalities in the DeFi world like Hayden Adams, the creator of Uniswap, firmly believe that we are still far from an adequate solution that effectively solves the impermanent loss issue.

Defi has been expanding its boundaries with an incredibly rapid speed and it’s now more imperative than ever to gain a better and effective understanding of the Decentralized finance ecosystem.

However, there is no denying the fact that DeFi not only comes up with new terminologies frequently but also becomes vulnerable to new attack patterns.

Therefore, in order to stay ahead of the curve, it’s very crucial to keep a sharp eye on any such DeFi events or terms.

Well, this DeFi Security and Awareness series help you exactly with that.

Get started with this Defi series and gain a better understanding of the DeFi ecosystem.

Parts of this series:

QuillAudits is accomplished in smart contract audits and security solutions to different industries including DeFi enterprises. Click below to book a free consultation session with QuillAudits

Follow us:
Twitter | LinkedIn | Facebook

4,523 Views

Blockchain for dog nose wrinkles' Ponzi makes off ~$127M🐶

Project promised up to 150% returns on investment in 100 days, raising about 166.4 billion South Korean won — or about $127 million — from 22,000 people.

Latest blogs for this week

Understanding Fuzzing and Fuzz Testing: A Vital Tool in Web3 Security

Read Time: 5 minutes When it comes to smart contracts, ensuring the robustness and security of code is paramount. Many techniques are employed to safeguard these contracts against vulnerabilities
Read More

How EigenLayer’s Restaking Enhances Security and Rewards in DeFi

Read Time: 7 minutes Decentralized finance (DeFi) relies on Ethereum staking to secure the blockchain and maintain consensus. Restaking allows liquid staking tokens to be staked with validators in
Read More

ERC 404 Standard: Everything You Need to Know

Read Time: 7 minutes Introduction Ethereum has significantly shaped the crypto world with its introduction of smart contracts and decentralized applications (DApps). This has led to innovative developments in
Read More

DNS Attacks:  Cascading Effects and Mitigation Strategies

Read Time: 8 minutes Introduction DNS security is vital for a safe online space. DNS translates domain names to IP addresses, crucial for internet functionality. DNS ensures unique name-value
Read More

EIP-4844 Explained: The Key to Ethereum’s Scalability with Protodanksharding

Read Time: 7 minutes Introduction  Ethereum, the driving force behind dApps, has struggled with scalability. High fees and slow processing have limited its potential. They have kept it from
Read More

QuillAudits Powers Supermoon at ETH Denver!

Read Time: 4 minutes Calling all the brightest minds and leaders in the crypto world! Are you ready to build, connect, and innovate at the hottest event during ETH
Read More

Decoding the Role of Artificial Intelligence in Metaverse and Web3

Read Time: 7 minutes Introduction  Experts predict a transformative shift in global software, driven by AI and ML, marking the dawn of a new era. PwC predicts AI will
Read More

Transforming Assets: Unlocking Real-World Asset Tokenization

Read Time: 7 minutes In the blockchain, real-world assets (RWAs) are digital tokens that stand for tangible and conventional financial assets, including money, raw materials, stocks, and bonds. As
Read More
Scroll to Top

Become a Quiffiliate!
Join our mission to safeguard web3

Sounds Interesting, Right? All you have to do is:

1

Refer QuillAudits to Web3 projects for audits.

2

Earn rewards as we conclude the audits.

3

Thereby help us Secure web3 ecosystem.

Total Rewards Shared Out: $200K+