Impermanent Loss Explained With Examples & Math

Impermanent Loss Explained With Examples & Math

That is a 20 ETH price difference from the initial 40 ETH deposit, resulting in an impermanent loss of 20 ETH. But it just so happened that transaction fees were extraordinarily high, providing an additional 10 ETH to your share of the pool. In this case, the loss on your return would only be 10 ETH at market value. It is impermanent because the supply of tokens in the pool can return to a 1 BTC to 10 ETH ratio in the future. But if a liquidity provider gains enough exposure, rewards from transaction fees can potentially make up for the impermanent loss.

What is Impermanent Loss (IL)

Bancor generates millions in fees per month for users who deposit their tokens in the protocol, offering up to 40% APR on tokens like ETH, WBTC, LINK, USDT, MATIC & more. Bancor is owned by its community as a decentralized autonomous organization (the BancorDAO). This difference between holding two assets and staking them in a pool is called impermanent loss. It is called that because the loss is not realized unless the stake is withdrawn. If ETH goes back to 100 DAI, and I withdraw my funds then, there wouldn’t be any impermanent loss. Impermanent loss is one of the fundamental concepts that anyone who wants to provide liquidity to AMMs should understand.

Beginner’s Guide to (Getting Rekt by) Impermanent Loss

In fact, even pools on Uniswap that are quite exposed to impermanent loss can be profitable thanks to the trading fees. Impermanent loss happens when you provide liquidity to a liquidity pool, and the price of your deposited assets changes compared to when you deposited them. The bigger this change is, the more you are exposed to impermanent loss. In this case, the loss means less dollar value at the time of withdrawal than at the time of deposit. In a volatile marketplace, impermanent loss is almost guaranteed when staking cryptocurrency assets within a standard liquidity pool.

Self-evidently, these pools offer identical exposure to both assets since price changes in either will affect the pool in the same way. So far, we have used the straightforward formula (4) to calculate impermanent loss. While it is great for measuring your current IL, it’s not convenient if you are looking to plot different IL values for different price changes. 17.179 DAI, or about 5.72%, is what we would have gained if we simply held the assets instead of staking them in the pool. It is important to note that we have still gained on our initial position of 200 DAI, but in this simple example, the optimal thing would have been to hold the assets.

Automated Market Maker Algorithms

Understanding impermanent loss is necessary for anyone who uses automated market makers because it helps in determining when to open and close positions. Generally speaking, you will always incur some level of impermanent loss when you participate in AMM-based protocols, regardless of price movement. Compared to holding, if asset prices go up, your position https://www.xcritical.com/blog/what-is-liquidity-mining/ will grow less, and if prices go down, you will lose more. This is where trading fees and yield farming come in — they help negate impermanent loss such that your participating in the automated market maker is more profitable than simply holding. So once the pool supply reaches 20 BTC and 100 ETH, your 20% deposit will be worth 4 BTC and 20 ETH.

  • It is inevitable and will be present in all liquidity pools, besides stablecoin pools with perfect correlation.
  • Exchange rates are set when buyers create demand and sellers offer supply.
  • It can also aid in mitigating loss without having to lose too much of your hard-earned money.
  • LPs are entitled to the fees levied to traders in proportion to their contribution to the liquidity pool.
  • However, impermanent loss occurs regardless of which asset in the cryptocurrency pair is moving.
  • Because IL happens less to stable pair LPs, we will look at a non-stable pair.
  • Past a certain point, if a pool collects enough fees an investor will have gained more from staking assets in a liquidity pool compared with holding them.

Now that you have attracted enough liquidity providers, traders can start swapping tokens. But unlike CEXs, traders can’t toggle between their preferred token or currency in a single pool. So everytime BTC is withdrawn, the equivalent in exchange rate value is added in ETH — and vice versa. Impermanent loss can occur in any decentralized exchange (DEX) that uses liquidity providers to fund pools segregated by trading pairs. But before we explain the mathematical phenomenon of the loss, we need to explain the purpose behind this new type of exchange and how it works. When the price of the assets you’ve LPed for goes out of range, you stop earning trading fees and liquidity mining rewards.

RUBY Utility: Creating New Liquidity Pools

You can make estimates of the fees you will collect based on APY data provided by the AMM platform. In addition, there’s a total of 10 ETH and 1,000 DAI in the pool – funded by other LPs just like Alice. So, Alice has a 10% share of the pool, and the total liquidity is 10,000.

What is Impermanent Loss (IL)

If you’d like to get an advanced explanation for this, check out pintail’s article. While this is happening, arbitrage traders will add DAI to the pool and remove ETH from it until the ratio reflects the current price. What determines the price of the assets in the pool is the ratio between them in the pool. While liquidity remains constant in the pool (10,000), the ratio of the assets in it changes.

The Investor’s Guide to Navigating Impermanent Loss

Sometimes, these fees are enough to offset the impermanent loss experienced during the liquidity provision. So, it is a good idea to watch out for the AMMs providing some fees for providing liquidity. Since impermanent loss is triggered by unequal prices changes, the best way https://www.xcritical.com/ to avoid it is by avoiding volatile token pairs. But Amberdata stresses that there are always a wide array of investment choices in a cost-benefit analysis. For example, simply avoiding IL may not make sense when you measure a pool’s IL costs vs transaction fee rewards.

What is Impermanent Loss (IL)

Leave a Reply

Your email address will not be published.