From a02c92c21a5694c739bd21b0829a288904731cc9 Mon Sep 17 00:00:00 2001 From: barak manos <> Date: Mon, 27 May 2024 18:46:13 +0300 Subject: [PATCH] Cosmetic --- fastlane_bot/modes/base_pairwise.py | 8 +------- fastlane_bot/modes/base_triangle.py | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/fastlane_bot/modes/base_pairwise.py b/fastlane_bot/modes/base_pairwise.py index 2d2fa6ece..2cdc1a94b 100644 --- a/fastlane_bot/modes/base_pairwise.py +++ b/fastlane_bot/modes/base_pairwise.py @@ -42,13 +42,7 @@ def find_arbitrage(self) -> Dict[List[Any], List[Any]]: profit = self.get_profit(src_token, optimization, trade_instructions_df) if profit is not None: - arb_opps.append( - { - "profit": profit, - "src_token": src_token, - 'trade_instructions_dic': trade_instructions_dic, - } - ) + arb_opps.append({"profit": profit, "src_token": src_token, "trade_instructions_dic": trade_instructions_dic}) return {"combos": combos, "arb_opps": sorted(arb_opps, key=lambda arb_opp: arb_opp["profit"], reverse=True)} diff --git a/fastlane_bot/modes/base_triangle.py b/fastlane_bot/modes/base_triangle.py index 6cbf06c85..9a5600af6 100644 --- a/fastlane_bot/modes/base_triangle.py +++ b/fastlane_bot/modes/base_triangle.py @@ -35,13 +35,7 @@ def find_arbitrage(self) -> Dict[List[Any], List[Any]]: profit = self.get_profit(src_token, optimization, trade_instructions_df) if profit is not None: - arb_opps.append( - { - "profit": profit, - "src_token": src_token, - 'trade_instructions_dic': trade_instructions_dic, - } - ) + arb_opps.append({"profit": profit, "src_token": src_token, "trade_instructions_dic": trade_instructions_dic}) return {"combos": combos, "arb_opps": sorted(arb_opps, key=lambda arb_opp: arb_opp["profit"], reverse=True)}