Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
poliwop committed Jan 29, 2024
1 parent d0d62d8 commit a6e823a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydradx/tests/test_arbitrage_agent_refactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def test_calculate_arb_amount_ask(
dex_price = test_dex.sell_spot(tkn, numeraire)
cex_price = initial_cex.buy_spot(tkn, numeraire)

if abs(1 - cex_price / dex_price) > p and amt != ask_quantity:
if 1 - cex_price / dex_price > p and amt != ask_quantity:
raise

if amt == ask_quantity and cex_price > dex_price:
Expand Down

0 comments on commit a6e823a

Please sign in to comment.