Skip to content

Commit

Permalink
Merge branch '37-increase-default_min_profit_bnt-value-fix-hardcoding…
Browse files Browse the repository at this point in the history
…-issue-in-confignetworkpy' into 42-b3_two_hop-arb-mode-resulting-in-losses-due-to-lack-of-data-validation
  • Loading branch information
mikewcasale committed Jul 31, 2023
2 parents 1feb175 + a183966 commit d7b08d8
Show file tree
Hide file tree
Showing 4 changed files with 391 additions and 1 deletion.
1 change: 1 addition & 0 deletions log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Searching for main.py in /Users/mikewcasale/Documents/GitHub/fastlane-bot
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,9 @@ def update_pools_from_contracts(
del bot
bot = init_bot(mgr)

assert bot.ConfigObj.DEFAULT_MIN_PROFIT == mgr.cfg.DEFAULT_MIN_PROFIT, "bot failed to update min profit"
mgr.cfg.logger.debug("Bot successfully updated min profit")

# Compare the initial state to the final state, and update the state if it has changed
final_state = mgr.pool_data.copy()
assert bot.db.state == final_state, "\n *** bot failed to update state *** \n"
Expand Down Expand Up @@ -637,7 +640,6 @@ def update_pools_from_contracts(
# Sleep for the polling interval
time.sleep(polling_interval)

print(f"timeout: {timeout}")
if timeout is not None and time.time() - start_timeout > timeout:
mgr.cfg.logger.info("Timeout hit... stopping bot")
break
Expand Down
Loading

0 comments on commit d7b08d8

Please sign in to comment.