Skip to content

Commit

Permalink
fix issue in which validator test could randomly fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesigh-3100 committed Aug 27, 2023
1 parent 3fab529 commit 9d36549
Show file tree
Hide file tree
Showing 3 changed files with 2,202 additions and 14 deletions.
28 changes: 14 additions & 14 deletions fastlane_bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,22 +511,22 @@ def validate_optimizer_trades(self, arb_opp, arb_mode, arb_finder):
-------
tuple or None
"""
(
best_profit,
best_trade_instructions_df,
best_trade_instructions_dic,
best_src_token,
best_trade_instructions,
) = arb_opp

(
ordered_trade_instructions_dct,
tx_in_count,
) = self._simple_ordering_by_src_token(
best_trade_instructions_dic, best_src_token
)
if arb_mode == "bancor_v3" or arb_mode == "b3_two_hop":

(
best_profit,
best_trade_instructions_df,
best_trade_instructions_dic,
best_src_token,
best_trade_instructions,
) = arb_opp

(
ordered_trade_instructions_dct,
tx_in_count,
) = self._simple_ordering_by_src_token(
best_trade_instructions_dic, best_src_token
)
cids = []
for pool in ordered_trade_instructions_dct:
pool_cid = pool["cid"]
Expand Down
Loading

0 comments on commit 9d36549

Please sign in to comment.