File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -114,12 +114,19 @@ token0, token1 = liq.calculate_position_holdings(
114114 price_upper,
115115 price_lower,
116116)
117+ print (" token0 amount == " , round (token0 / 10 ** 6 , 4 ), " USDC" )
118+ print (" token1 amount == " , round (token1 / 10 ** 18 , 4 ), " ETH" )
117119```
118120
119121Result:
120122
121- - token0 = 34893259 / 10^6 or ~ $34.89 USDC
122- - token1 = 8830930485638544 / 10^18 or ~ 0.0088 ETH
123+ ``` txt
124+ token0 amount == 34.8933 USDC
125+ token1 amount == 0.0088 ETH
126+ ```
127+
128+ - ` token0 ` = $34.89 USDC
129+ - ` token1 ` = 0.0088 ETH
123130
124131## LP Fees earned
125132
@@ -161,12 +168,19 @@ fees0, fees1 = liq.calculate_uncollected_fees(
161168 tick_upper,
162169 tick,
163170)
171+ print (" fees0 == " , round (fees0 / 10 ** 6 , 4 ), " USDC" )
172+ print (" fees1 == " , round (fees1 / 10 ** 18 , 4 ), " ETH" )
164173```
165174
166175Result:
167176
168- - fees0 = ` 10901302 ` / 10^6 or ~ $10.90 USDC
169- - fees1 = ` 2585395589026349 ` / 10^18 or ~ 0.003 ETH
177+ ``` txt
178+ fees0 == 10.9013 USDC
179+ fees1 == 0.0026 ETH
180+ ```
181+
182+ - ` fees0 ` = $10.90 USDC
183+ - ` fees1 ` = 0.0026 ETH
170184
171185## 🧪 Run Tests
172186
You can’t perform that action at this time.
0 commit comments