Skip to content

Commit ec5b122

Browse files
committed
remove double mul of precisions[0]
1 parent 616a278 commit ec5b122

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contracts/main/CurveCryptoViews2Optimized.vy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,11 @@ def _calc_dtoken_nofee(
286286
amountsp[0] *= precisions[0]
287287

288288
xp = [
289-
xp[0] * precisions[0],
289+
xp[0],
290290
xp[1] * price_scale * precisions[1] / PRECISION
291291
]
292292
amountsp = [
293-
amountsp[0] * precisions[0],
293+
amountsp[0],
294294
amountsp[1] * price_scale * precisions[1] / PRECISION
295295
]
296296

tests/unitary/pool/test_admin_fee.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import boa
2-
from hypothesis import example, given, settings
2+
from hypothesis import given, settings
33
from hypothesis import strategies as st
44

55
from tests.fixtures.pool import INITIAL_PRICES

0 commit comments

Comments
 (0)