Skip to content

Commit

Permalink
remove print; ignore flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed Oct 11, 2023
1 parent 39963c8 commit d2e7fec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion contracts/main/CurveCryptoMathOptimized2.vy
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ def get_y(
) -> uint256[2]:

# Safety checks
print(_ANN, MIN_A, MAX_A)
assert _ANN > MIN_A - 1 and _ANN < MAX_A + 1 # dev: unsafe values A
assert _gamma > MIN_GAMMA - 1 and _gamma < MAX_GAMMA + 1 # dev: unsafe values gamma
assert _D > 10**17 - 1 and _D < 10**15 * 10**18 + 1 # dev: unsafe values D
Expand Down
13 changes: 5 additions & 8 deletions tests/unitary/pool/test_exchange_received.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# flake8: noqa
import boa
from boa.test import strategy
from hypothesis import given, settings # noqa
Expand All @@ -12,12 +13,8 @@
amount=strategy(
"uint256", min_value=10**10, max_value=10**6 * 10**18
),
split_in=strategy(
"uint256", min_value=0, max_value=100
),
split_out=strategy(
"uint256", min_value=0, max_value=100
),
split_in=strategy("uint256", min_value=0, max_value=100),
split_out=strategy("uint256", min_value=0, max_value=100),
i=strategy("uint", min_value=0, max_value=1),
j=strategy("uint", min_value=0, max_value=1),
)
Expand All @@ -31,6 +28,6 @@ def test_exchange_split(
split_in,
split_out,
i,
j
j,
):
pass
pass

0 comments on commit d2e7fec

Please sign in to comment.