From b36b31959f40a7c5b8da3d5c4386160db0774e46 Mon Sep 17 00:00:00 2001 From: Dowland Aiello Date: Mon, 14 Oct 2024 20:05:17 +0000 Subject: [PATCH] See previous. --- src/strategies/util.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/strategies/util.py b/src/strategies/util.py index 2037128f..f613fcb2 100644 --- a/src/strategies/util.py +++ b/src/strategies/util.py @@ -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"]: @@ -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] @@ -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,