Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
amfet42 committed Sep 19, 2023
1 parent 6b7d0ba commit 0ae76f4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test_deployment/test_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_add_liquidity(
self, admin, deploy, admin_mint_tokens, approve_admin, tokens_to_add
):
pool = deploy[0]
tx = pool.add_liquidity(tokens_to_add, 0, False, sender=admin)
tx = pool.add_liquidity(tokens_to_add, 0, sender=admin)
d_tokens = tx.return_value
assert pool.balanceOf(admin) == pool.totalSupply() == d_tokens

Expand All @@ -35,14 +35,14 @@ def test_exchange(
j,
):
pool = deploy[0]
pool.add_liquidity(tokens_to_add, 0, False, sender=admin)
pool.add_liquidity(tokens_to_add, 0, sender=admin)

if i == 0:
amount = 100 * 10 * 6
else:
amount = 1 * 10**6

tx = pool.exchange_underlying(
tx = pool.exchange_received(
i,
j,
amount,
Expand All @@ -59,7 +59,7 @@ def test_remove_liquidity_one(
self, admin, deploy, admin_mint_tokens, approve_admin, tokens_to_add, i
):
pool = deploy[0]
pool.add_liquidity(tokens_to_add, 0, False, sender=admin)
pool.add_liquidity(tokens_to_add, 0, sender=admin)

bal = pool.balanceOf(admin)
coin_contract = deploy[1][i]
Expand All @@ -69,7 +69,6 @@ def test_remove_liquidity_one(
bal // 2,
i,
0,
False,
sender=admin,
) # noqa: E501

Expand Down

0 comments on commit 0ae76f4

Please sign in to comment.