Skip to content

Commit

Permalink
Update bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesigh-3100 committed Jul 25, 2024
1 parent 2770e2c commit 86232f9
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions fastlane_bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86232f9

Please sign in to comment.