Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
barak manos committed May 27, 2024
1 parent 2e0ada6 commit 314efb1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fastlane_bot/modes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ def get_profit(self, src_token: str, optimization, trade_instructions_df):
return None

def calculate_profit(self, src_token: str, src_profit: float) -> Decimal:
"""
Calculate profit based on the source token.
"""
if src_token not in [self.ConfigObj.NATIVE_GAS_TOKEN_ADDRESS, self.ConfigObj.WRAPPED_GAS_TOKEN_ADDRESS]:
items = get_items(self.CCm, self.sort_order, self.ConfigObj.WRAPPED_GAS_TOKEN_ADDRESS, src_token)
assert len(items) > 0, f"Failed to get conversion rate for {src_token} and {self.ConfigObj.WRAPPED_GAS_TOKEN_ADDRESS}"
Expand Down

0 comments on commit 314efb1

Please sign in to comment.