Skip to content

Commit

Permalink
Refresh wallet balance more regularly.
Browse files Browse the repository at this point in the history
  • Loading branch information
dowlandaiello committed Oct 2, 2024
1 parent e3bd8fa commit 5297570
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/strategies/naive.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ async def strategy(
except ValueError as e:
logger.error("Failed to rebalance portfolio: %s", e)

ctx = ctx.with_state(state.poll(ctx, pools, auctions))

if not state.balance:
return ctx

logger.info(
f"Starting arbitrage round with {state.balance} {ctx.cli_args['base_denom']}"
)

# Report route stats to user
logger.info(
"Finding profitable routes",
Expand Down

0 comments on commit 5297570

Please sign in to comment.