Skip to content

Commit

Permalink
Cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
barak manos committed May 27, 2024
1 parent fe9c597 commit a02c92c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions fastlane_bot/modes/base_pairwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}

Expand Down
8 changes: 1 addition & 7 deletions fastlane_bot/modes/base_triangle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}

Expand Down

0 comments on commit a02c92c

Please sign in to comment.