From 86232f9a0e861d2df3fbab7e568196f036104aa8 Mon Sep 17 00:00:00 2001 From: Lesigh-3100 Date: Thu, 25 Jul 2024 17:31:02 +0300 Subject: [PATCH] Update bot.py --- fastlane_bot/bot.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/fastlane_bot/bot.py b/fastlane_bot/bot.py index 8be72c653..f53399fd9 100644 --- a/fastlane_bot/bot.py +++ b/fastlane_bot/bot.py @@ -846,17 +846,12 @@ def _handle_trade_instructions( ) ] - # Do not add wrap/unwrap transactions on Celo - if self.ConfigObj.NETWORK == "celo": - route_struct_processed = route_struct - else: - route_struct_processed = add_wrap_or_unwrap_trades_to_route( - cfg=self.ConfigObj, - flashloans=flashloan_struct, - routes=route_struct, - trade_instructions=split_calculated_trade_instructions, - ) - + route_struct_processed = add_wrap_or_unwrap_trades_to_route( + cfg=self.ConfigObj, + flashloans=flashloan_struct, + routes=route_struct, + trade_instructions=split_calculated_trade_instructions, + ) maximize_last_trade_per_tkn(route_struct=route_struct_processed) # Log the flashloan details