Skip to content

Commit

Permalink
fix limits and remove spot wallet tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed Nov 8, 2023
1 parent 5500457 commit 0e33774
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 25 deletions.
2 changes: 1 addition & 1 deletion contracts/main/CurveCryptoMathOptimized2.vy
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ N_COINS: constant(uint256) = 2
A_MULTIPLIER: constant(uint256) = 10000

MIN_GAMMA: constant(uint256) = 10**10
MAX_GAMMA: constant(uint256) = 2 * 10**16
MAX_GAMMA: constant(uint256) = 2 * 10**15

MIN_A: constant(uint256) = N_COINS**N_COINS * A_MULTIPLIER / 10
MAX_A: constant(uint256) = N_COINS**N_COINS * A_MULTIPLIER * 1000
Expand Down
4 changes: 2 additions & 2 deletions tests/unitary/math/fuzz_multicoin_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
N_COINS = 2
A_MUL = 10000
MIN_A = int(N_COINS**N_COINS * A_MUL / 10)
MAX_A = int(N_COINS**N_COINS * A_MUL * 100000)
MAX_A = int(N_COINS**N_COINS * A_MUL * 1000)

# gamma from 1e-8 up to 0.05
MIN_GAMMA = 10**10
MAX_GAMMA = 2 * 10**16
MAX_GAMMA = 2 * 10**15


# Test with 2 coins
Expand Down
2 changes: 1 addition & 1 deletion tests/unitary/pool/test_exchange_received.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
j=strategy("uint", min_value=0, max_value=1),
)
@settings(**SETTINGS)
def test_exchange_split(
def test_exchange_received(
swap_with_deposit,
views_contract,
coins,
Expand Down
21 changes: 0 additions & 21 deletions tests/unitary/pool/test_spot_wallet.py

This file was deleted.

0 comments on commit 0e33774

Please sign in to comment.