heystack

UNIv3 IL CALC

How much impermanent loss are you in a danger of? Here is Uniswap V3 impermanent loss calculator for stable/unstable LPs (ETH/USDC, e.g.). This also allows you to estimate yields based on days outside of range. "Make a copy" to modify the values. By @phtevenstrong

From the heystacks.com archiveUpdated 6.1K views
Open original
View as text
CONCENTRATED LIQUIDITY IMPERMANENT LOSS CALC (STABLE/UNSTABLE PAIR)SPECIAL THANKS

Barry Fried

BLUE = INPUTS, EDIT THESEGREEN = OUTPUTS, DON'T EDIT THESEOlogai
Volatile AssetInitial Price (ETH)ETH Initial AmountFuture Amount, ETHFuture Amount, StablesFuture Value
ETH15003.002.289$7,265.15$10,927.47INITIAL ASSET AMOUNTS IN LP
ETH Upper TickETH Lower TickEstimated APREffective APRInitial Stables NeededLP YIELDETHSTABLES
2000.001000.0050%43.00%$6,163.605.89%3.00$6,163.60
Future Price (ETH)Days in The FutureDays Out of RangeEstimated InterestFuture Value w/ Interest
1600507$643.67$11,571.14
IMPERMANT LOSS CALCULATIONSFINAL TALLIES
ETH Value if HeldStables Value if HeldTotal Value if HeldImpermanent Loss ($)Impermanent Loss (%)HODL or LP?
$4,800.00$6,163.60$10,963.60-$36.13-0.33%
ETH Value if LPStables Value if LPTotal if LPPnL After Yield Added ($)PnL After Yield Added (%)LP
$3,662.32$7,265.15$10,927.47$607.555.54%

UNDER THE HOOD

VARIABLEDESCRIPTIONFORMULAVALUES
LxLiquidity of XX((√Px*Pb)/(√Pb-√Px)867.2502375
LyLiquidity of YY/(√Px-√Pa)867.25
PxPrice, Asset X1500
PyPrice, Asset Y1
PaPrice, Lower Tick Range1000.00
PbPrice, Upper Tick Range2000.00
XAmount, Asset X3.00
YAmount, Asset YLx(√Px-√Pa)$6,163.60
LLiquidity√K867.25
K🤷‍♂️L²752122.97
X'Future Amount, Asset XL((√Pb-√Px')/(√Px'*√Pb))2.288951092
Y'Future Amount, Asset YL(√Px'-√Pa)$7,265.15
Px'Future Price, Asset X1600
Py'Future Price, Asset Y1
UniV3 AMM Formula(X + (L/√Pb))(Y + L√Pa) = L²

Discussion 1

0/5,000

  1. e

    e