Skip to content

Commit

Permalink
See previous.
Browse files Browse the repository at this point in the history
  • Loading branch information
dowlandaiello committed Oct 14, 2024
1 parent 3ba9498 commit b36b319
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/strategies/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ async def eval_sell_denom(denom: str, sell_denom: str, balance: int) -> None:
[denom],
)

continue
return

# Check that the execution plan results in a liquidatable quantity
if execution_plan[-1] < ctx.cli_args["rebalance_threshold"]:
Expand All @@ -627,7 +627,7 @@ async def eval_sell_denom(denom: str, sell_denom: str, balance: int) -> None:
[denom],
)

continue
return

ctx.log_route(
route_ent, "info", "Executing rebalancing plan for %s", [denom]
Expand All @@ -639,8 +639,6 @@ async def eval_sell_denom(denom: str, sell_denom: str, balance: int) -> None:

try:
await exec_arb(route_ent, 0, execution_plan, route, ctx)

break
except Exception:
ctx.log_route(
route_ent,
Expand Down

0 comments on commit b36b319

Please sign in to comment.