Overall
  • šŸ‘‹Welcome to Artichoke
  • Single-Sided LP Mechanics
    • šŸ“ Basic Mathematics
    • šŸ’°Related Pricing
    • šŸ“ŠThe Bonding Curve
    • āŒ›Staking & Impermanent Loss
    • šŸ”™Variation and Returns
    • 🧮Total Returns
  • Single-Sided Liquidity Strategies
    • 1ļøāƒ£Uniswap's Inherent Hedging
    • 2ļøāƒ£The Straddle
    • 3ļøāƒ£Delta-Zero
  • Protocol Architecture
    • šŸ”€Virtual Omnipool and Tails
    • āš–ļøStabilizer Pool
    • šŸ‘Øā€šŸ’»Product Overview from the User Perspective
  • Token Metrics
    • šŸŖ™CHOKE Token
    • šŸ“ˆAccruing Value
    • šŸ”„Burn Schedule
  • Staking
    • šŸ“—Staking Guide
    • ā”Staking FAQ
  • Security Report
    • šŸ”Artichoke Alpha Phase Report
  • FAQ
    • ā“Frequently Asked Questions
Powered by GitBook
On this page
  1. Single-Sided LP Mechanics

Staking & Impermanent Loss

One of the main issues with liquidity providing on an LP is impermanent loss. IL is the loss incurred by a market making position vs. keeping the initially allocated amounts fixed. Another approach of IL could be referred as unrealized profit or loss (uPNL): this a more accurate way to call such profit or loss, as it only becomes realized if one chooses to sell out of a position which has changed in value.

Given an initial price P0P_0P0​, the value of P0P_0P0​ of a 2-asset portfolio is initially given by:

V=V0+P0ā‹…yV = V_0 + P_0 \cdot y V=V0​+P0​⋅y

On the other hand, a new value V1V_1V1​ after the first transactions P1P_1P1​ is given by:

V1=x′+P1ā‹…y′V_1 = x' + P_1 \cdot y' V1​=x′+P1​⋅y′

Given a new value and new prices, the equation will still be the following:

x+P1ā‹…yx+ P_1 \cdot yx+P1​⋅y

The IL or uIL is the delta between the portfolio change of the market making portfolio and the change in value of a portfolio of assets with fixed quantities. This is the loss on top of a mark to market move of an equivalent fixed-quantity portfolio:

x′+P1ā‹…yā€²āˆ’(x+P0ā‹…y)āˆ’(x+P1ā‹…yāˆ’(x+P0ā‹…y))x' + P_1 \cdot y' - (x + P_0 \cdot y) - (x + P_1 \cdot y - (x + P_0 \cdot y)) x′+P1​⋅yā€²āˆ’(x+P0​⋅y)āˆ’(x+P1​⋅yāˆ’(x+P0​⋅y))

Which simplifies to:

xā€²āˆ’x+P1ā‹…yā€²āˆ’P0ā‹…yāˆ’(P1āˆ’P0)ā‹…yx' - x + P_1 \cdot y' - P_0 \cdot y - (P_1 - P_0) \cdot yxā€²āˆ’x+P1​⋅yā€²āˆ’P0​⋅yāˆ’(P1ā€‹āˆ’P0​)ā‹…y

Also, we will call RRR the ratio between the current and previous price given a fixed-period of time ttt:

R=P1P0R = \frac{P_1}{P_0}R=P0​P1​​

Hence, unrealized impermanent loss ϵ\epsilonϵ will be given by the following equation:

ϵ=uPNLV0=Rāˆ’12ā‹…(R+1)\epsilon = \frac{uPNL}{V_0} = \sqrt{R} - \frac{1}{2} \cdot (R+1)ϵ=V0​uPNL​=Rā€‹āˆ’21​⋅(R+1)

PreviousThe Bonding CurveNextVariation and Returns

Last updated 2 years ago

āŒ›