We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec5b122 commit 6d80da0Copy full SHA for 6d80da0
contracts/main/CurveCryptoViews2Optimized.vy
@@ -283,14 +283,12 @@ def _calc_dtoken_nofee(
283
for k in range(N_COINS):
284
xp[k] -= amounts[k]
285
286
- amountsp[0] *= precisions[0]
287
-
288
xp = [
289
- xp[0],
+ xp[0] * precisions[0],
290
xp[1] * price_scale * precisions[1] / PRECISION
291
]
292
amountsp = [
293
- amountsp[0],
+ amountsp[0]* precisions[0],
294
amountsp[1] * price_scale * precisions[1] / PRECISION
295
296
0 commit comments