Skip to content

Commit

Permalink
test: verifying original error is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoCentonze committed Mar 17, 2024
1 parent 7eaaa71 commit b43b327
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/pools/meta/test_get_dy_underlying_fix.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,12 @@ def test_exchange_underlying_preview(swap, coins_range):
for sending in coins_range:
# these calls used to revert before the fix
swap.get_dy_underlying(sending, receiving, 10**19)

def test_broken_pool_is_fixed(forked_chain, meta_deployer, views_deployer):
BROKEN_SWAP = '0x9e10f9Fb6F0D32B350CEe2618662243d4f24C64a'
BROKEN_VIEW ='0xe0B15824862f3222fdFeD99FeBD0f7e0EC26E1FA'

# testing fix for the first instance of the error reported
metapool = meta_deployer.at(BROKEN_SWAP)
views_deployer.at(BROKEN_VIEW)
metapool.get_dy_underlying(1, 0, 50000000)

0 comments on commit b43b327

Please sign in to comment.