Skip to content

Commit

Permalink
fixed all
Browse files Browse the repository at this point in the history
  • Loading branch information
heswithme committed Sep 24, 2024
1 parent b92f254 commit 8879ea0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test_suite/latest_report.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
| 34 | token/test_token_transfer | 324 | 0 | 0 | 0 | 0 | 0 | 324 | 14.72 |
| 33 | token/test_token_approve | 504 | 0 | 0 | 0 | 0 | 0 | 504 | 15.24 |
| 32 | token/test_get_D | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1.61 |
| 31 | pools/oracle/test_oracles | 138 | 78 | 0 | 0 | 0 | 432 | 648 | 984.25 |
| 30 | pools/oracle/test_oracle | 6 | 1 | 1 | 0 | 0 | 0 | 8 | 5.07 |
| 31 | pools/oracle/test_oracles | 181 | 0 | 0 | 35 | 0 | 432 | 648 | 82.94 |
| 30 | pools/oracle/test_oracle | 6 | 0 | 0 | 0 | 0 | 0 | 6 | 6.49 |
| 29 | pools/meta/test_receiver_meta | 27 | 0 | 0 | 0 | 0 | 0 | 27 | 5.38 |
| 28 | pools/meta/test_meta_zap_ng_base | 5 | 0 | 0 | 0 | 0 | 0 | 4 | 4.31 |
| 27 | pools/meta/test_meta_zap | 3 | 0 | 0 | 0 | 0 | 0 | 3 | 3.97 |
| 26 | pools/meta/test_meta_new_ng_base | 12 | 0 | 0 | 0 | 0 | 0 | 12 | 5.22 |
| 25 | pools/meta/test_get_virtual_price_meta | 324 | 0 | 0 | 0 | 0 | 0 | 324 | 14.89 |
| 24 | pools/meta/test_get_dy_underlying_fix | 5 | 0 | 0 | 0 | 0 | 2 | 7 | 11.21 |
| 24 | pools/meta/test_get_dy_underlying_fix | 5 | 0 | 0 | 0 | 0 | 2 | 7 | 10.07 |
| 23 | pools/meta/test_exchange_underlying_reverts | 918 | 0 | 0 | 54 | 0 | 0 | 972 | 61.81 |
| 22 | pools/meta/test_exchange_underlying | 18 | 0 | 0 | 0 | 0 | 0 | 18 | 4.72 |
| 21 | pools/liquidity/test_remove_liquidity_one_coin | 648 | 0 | 0 | 0 | 0 | 0 | 648 | 30.72 |
Expand Down
4 changes: 2 additions & 2 deletions test_suite/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

# if subfolders are specified, all tests will be run only in those subfolders
# (disregarding tests_to_run)
only_subfolders = [] # ["pools", "meta"]
only_subfolders = ["pools", "oracle"]

# if tests_to_run is specified, only those tests will be run (except if only_subfolders is specified)
tests_to_run = ["test_get_dy_underlying_fix"]
tests_to_run = []

# Output files (0 for debugging when we dont need to spam files)
SAVE_FILES = 1
Expand Down
5 changes: 4 additions & 1 deletion tests/pools/oracle/test_oracles.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ def check_oracle(swap, dt):
p_amm = []
coins = swap.N_COINS() - 1
assert 0 < coins < 10
prec = 1e-5
if swap._immutables.pool_contains_rebasing_tokens:
prec = 1e-2
else:
prec = 1e-5
for n in range(coins):
_p = swap.get_p(n)
if _p > 2 * 10**18 or _p < 0.5 * 10**18:
Expand Down

0 comments on commit 8879ea0

Please sign in to comment.