Skip to content

Commit 6d80da0

Browse files
committed
fix: remove double mul correctly :P
1 parent ec5b122 commit 6d80da0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

contracts/main/CurveCryptoViews2Optimized.vy

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,12 @@ def _calc_dtoken_nofee(
283283
for k in range(N_COINS):
284284
xp[k] -= amounts[k]
285285

286-
amountsp[0] *= precisions[0]
287-
288286
xp = [
289-
xp[0],
287+
xp[0] * precisions[0],
290288
xp[1] * price_scale * precisions[1] / PRECISION
291289
]
292290
amountsp = [
293-
amountsp[0],
291+
amountsp[0]* precisions[0],
294292
amountsp[1] * price_scale * precisions[1] / PRECISION
295293
]
296294

0 commit comments

Comments
 (0)