Skip to content

Commit

Permalink
Merge pull request #90 from bancorprotocol/bugfix/validator_test
Browse files Browse the repository at this point in the history
fix issue in which validator test could randomly fail
  • Loading branch information
mikewcasale authored Aug 28, 2023
2 parents 3fab529 + b333088 commit 2dff3f3
Show file tree
Hide file tree
Showing 3 changed files with 744 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 2dff3f3

Please sign in to comment.