From d2e7fec2d8cdbb773cfc1205478518d320d4f0df Mon Sep 17 00:00:00 2001 From: bout3fiddy <11488427+bout3fiddy@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:43:33 +0200 Subject: [PATCH] remove print; ignore flake8 --- contracts/main/CurveCryptoMathOptimized2.vy | 1 - tests/unitary/pool/test_exchange_received.py | 13 +++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/contracts/main/CurveCryptoMathOptimized2.vy b/contracts/main/CurveCryptoMathOptimized2.vy index 2b3b0b55..dcb98c57 100644 --- a/contracts/main/CurveCryptoMathOptimized2.vy +++ b/contracts/main/CurveCryptoMathOptimized2.vy @@ -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 diff --git a/tests/unitary/pool/test_exchange_received.py b/tests/unitary/pool/test_exchange_received.py index a1eda8dd..ab54e852 100644 --- a/tests/unitary/pool/test_exchange_received.py +++ b/tests/unitary/pool/test_exchange_received.py @@ -1,3 +1,4 @@ +# flake8: noqa import boa from boa.test import strategy from hypothesis import given, settings # noqa @@ -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), ) @@ -31,6 +28,6 @@ def test_exchange_split( split_in, split_out, i, - j + j, ): - pass \ No newline at end of file + pass