Custos envolvidos na compra da sua casa

Descobriu a casa perfeita e já só pensa na mudança? Para não reagir como o Sheldon no momento da escritura o melhor é mesmo informar-se sobre quanto vai custar todo o processo burocrático. Para lhe…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Computing Impermanent Loss in Liquidity Pools

Liquidation is the biggest risk associated with leverage yield farming in DeFi. In a previous article we computed the liquidation threshold for a simple liquidity pool (LP) position. Impermanent loss (IL) is another major risk. IL occurs when our equity asset token price fluctuates.

To quantify IL, assume we have entered an X — Y token pair LP. Following the notation we used in this article, our initial position value in the LP can be written in USD ($) terms as:

LP initial $ position value.

We also previously computed the change in position value when the X token has a relative fluctuation value of δ:

Combining these two equations:

Now lets compute the equivalent position value had we held the tokens instead of entering them into the LP:

Initial values are obviously equal.
Position value of holding the asset after price fluctuation.

IL is defined as:

We have computed all the elements needed to compute this equation:

We can simplify further by using our definition of δ. Recall:

Definition of δ.

This yields the final expression for IL:

Final expression for IL.

Below we plot this result:

Example: If the asset doubles, IL = (2*1.41)/3 -1 = -5.7%.

Add a comment

Related posts:

Ways Social Media will Change in 2018

Every year the dynamics of how Social media marketing works change. With more number of people using Social media to communicate and market products the interactions have changed by many folds. In…

How to Still Enjoy Life Amidst the Corona Virus Fear.

With Corona Virus cancelling all of life leasures from travel, to events, and music festivals, It can be quite arring. It seems as though overnight the intense fear grew to a new level especially…

How Six Sigma Can Be Used in the Finance Industry

Finance has always been and will always be one of the most crucial segments of a business as it deals with the infatuation of all the assets and liabilities of a business. We should emphasize the…