Skip to content

Commit

Permalink
Cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
barak manos committed May 25, 2024
1 parent 5812306 commit a7cb59b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastlane_bot/helpers/poolandtokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ def _carbon_to_cpc_dict(self) -> Tuple[Dict, bool]:
no_limit_orders = not any(encoded_order["A"] == 0 for encoded_order in encoded_orders)

# evaluate if the price boundaries pa/pb overlap at one end
min0, max0 = sorted([strategy_typed_args[0]["pa"] ** +1, strategy_typed_args[0]["pb"] ** +1])
min1, max1 = sorted([strategy_typed_args[1]["pa"] ** -1, strategy_typed_args[1]["pb"] ** -1])
min0, max0 = sorted([strategy_typed_args[0]["pa"] ** +1, strategy_typed_args[0]["pb"] ** +1])
min1, max1 = sorted([strategy_typed_args[1]["pa"] ** -1, strategy_typed_args[1]["pb"] ** -1])
prices_overlap = max(min0, min1) < min(max0, max1)

# if the threshold is met and neither is a limit order and prices overlap then likely to be overlapping
Expand Down

0 comments on commit a7cb59b

Please sign in to comment.