From ecdeac027467cffb661e7fc6e6d194a1fc9ed971 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 27 Jul 2024 08:27:19 -0400 Subject: [PATCH] fixed bug when multi convert has perfect multiples of max iterations --- core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.py b/core.py index 161829f..cb80c64 100755 --- a/core.py +++ b/core.py @@ -252,7 +252,7 @@ def convert_tokens_multi(account, multi_address, token0_address, token1_address, if get_beacon_gas_prices('rapid', beacon_gasnow_cache_seconds) > rapid_gas_fee_limit: logging.warning("Gas fees are too high") return None - if i + 1 < loops or iterations == routes_functions[multi_address]['max_iterations']: + if i + 1 < loops or iterations % routes_functions[multi_address]['max_iterations'] == 0: # do max iterations during loop call_iterations = routes_functions[multi_address]['max_iterations'] else: