ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
2
CONCENTRATED LIQUIDITY IMPERMANENT LOSS CALC (STABLE/UNSTABLE PAIR)SPECIAL THANKS
3
Barry Fried
4
BLUE = INPUTS, EDIT THESEGREEN = OUTPUTS, DON'T EDIT THESEOlogai
5
Volatile AssetInitial Price (ETH)ETH Initial AmountFuture Amount, ETHFuture Amount, StablesFuture Value
6
ETH35003.00-1.451-$4,604.90-$6,926.20INITIAL ASSET AMOUNTS IN LP
7
ETH Upper TickETH Lower TickEstimated APREffective APRInitial Stables NeededLP YIELDETHSTABLES
8
2000.001000.0050%43.00%-$15,137.455.89%3.00-$15,137.45
9
Future Price (ETH)Days in The FutureDays Out of RangeEstimated InterestFuture Value w/ Interest
10
1600507-$407.98-$7,334.18
11
IMPERMANT LOSS CALCULATIONSFINAL TALLIES
12
ETH Value if HeldStables Value if HeldTotal Value if HeldImpermanent Loss ($)Impermanent Loss (%)HODL or LP?
13
$4,800.00-$15,137.45-$10,337.45$3,411.25-33.00%
14
ETH Value if LPStables Value if LPTotal if LPPnL After Yield Added ($)
PnL After Yield Added (%)
LPHi guys
15
-$2,321.30-$4,604.90-$6,926.20$3,003.26-29.05%- Stephen
16
17
UNDER THE HOOD
18
19
VARIABLEDESCRIPTIONFORMULAVALUES
20
LxLiquidity of XX((√Px*Pb)/(√Pb-√Px)-549.6927082
21
LyLiquidity of YY/(√Px-√Pa)-549.69
22
PxPrice, Asset X3500
23
PyPrice, Asset Y1
24
PaPrice, Lower Tick Range1000.00
25
PbPrice, Upper Tick Range2000.00
26
XAmount, Asset X3.00
27
YAmount, Asset YLx(√Px-√Pa)-$15,137.45
28
LLiquidity√K-549.69
29
K🤷‍♂️302162.07
30
X'Future Amount, Asset XL((√Pb-√Px')/(√Px'*√Pb))-1.450815082
31
Y'Future Amount, Asset YL(√Px'-√Pa)-$4,604.90
32
Px'Future Price, Asset X1600
33
Py'Future Price, Asset Y1
34
UniV3 AMM Formula(X + (L/√Pb))(Y + L√Pa) = L²
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100