From c0d5ea03cf1bb9ddc32ef9034d9517ab10bb2cdd Mon Sep 17 00:00:00 2001 From: barak manos <> Date: Fri, 24 May 2024 11:29:06 +0300 Subject: [PATCH] Minor --- fastlane_bot/modes/pairwise_multi_all.py | 8 ++++---- fastlane_bot/modes/pairwise_multi_pol.py | 4 ++-- fastlane_bot/modes/triangle_multi_complete.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fastlane_bot/modes/pairwise_multi_all.py b/fastlane_bot/modes/pairwise_multi_all.py index ff579a3ad..5a5ef214a 100644 --- a/fastlane_bot/modes/pairwise_multi_all.py +++ b/fastlane_bot/modes/pairwise_multi_all.py @@ -21,8 +21,8 @@ def get_combos(self) -> List[Any]: def get_curve_combos(self, CC: Any) -> List[Any]: carbon_curves = [x for x in CC.curves if x.params.exchange in self.ConfigObj.CARBON_V1_FORKS] - not_carbon_curves = [x for x in CC.curves if x.params.exchange not in self.ConfigObj.CARBON_V1_FORKS] - curve_combos = [[_curve0] + [_curve1] for _curve0 in not_carbon_curves for _curve1 in not_carbon_curves if (_curve0 != _curve1)] + non_carbon_curves = [x for x in CC.curves if x.params.exchange not in self.ConfigObj.CARBON_V1_FORKS] + curve_combos = [[_curve0] + [_curve1] for _curve0 in non_carbon_curves for _curve1 in non_carbon_curves if (_curve0 != _curve1)] if len(carbon_curves) > 0: base_direction_pair = carbon_curves[0].pair @@ -31,10 +31,10 @@ def get_curve_combos(self, CC: Any) -> List[Any]: curve_combos = [] if len(base_direction_one) > 0: - curve_combos += [[curve] + base_direction_one for curve in not_carbon_curves] + curve_combos += [[curve] + base_direction_one for curve in non_carbon_curves] if len(base_direction_two) > 0: - curve_combos += [[curve] + base_direction_two for curve in not_carbon_curves] + curve_combos += [[curve] + base_direction_two for curve in non_carbon_curves] if len(carbon_curves) >= 2: curve_combos += [carbon_curves] diff --git a/fastlane_bot/modes/pairwise_multi_pol.py b/fastlane_bot/modes/pairwise_multi_pol.py index d91f4ea8f..78128f390 100644 --- a/fastlane_bot/modes/pairwise_multi_pol.py +++ b/fastlane_bot/modes/pairwise_multi_pol.py @@ -22,8 +22,8 @@ def get_combos(self) -> List[Any]: def get_curve_combos(self, CC: Any) -> List[Any]: pol_curves = [x for x in CC.curves if x.params.exchange == "bancor_pol"] carbon_curves = [x for x in CC.curves if x.params.exchange in self.ConfigObj.CARBON_V1_FORKS] - not_carbon_curves = [x for x in CC.curves if x.params.exchange not in ["bancor_pol"] + self.ConfigObj.CARBON_V1_FORKS] - curve_combos = [[curve] + pol_curves for curve in not_carbon_curves] + non_carbon_curves = [x for x in CC.curves if x.params.exchange not in ["bancor_pol"] + self.ConfigObj.CARBON_V1_FORKS] + curve_combos = [[curve] + pol_curves for curve in non_carbon_curves] if len(carbon_curves) > 0: base_direction_pair = carbon_curves[0].pair diff --git a/fastlane_bot/modes/triangle_multi_complete.py b/fastlane_bot/modes/triangle_multi_complete.py index e62effe7f..1a3bc294a 100644 --- a/fastlane_bot/modes/triangle_multi_complete.py +++ b/fastlane_bot/modes/triangle_multi_complete.py @@ -103,7 +103,7 @@ def get_all_relevant_pairs_info(CCm, all_relevant_pairs, carbon_v1_forks): if len(base_direction_one) > 0: all_relevant_pairs_info[pair]['curves'].append(base_direction_one) if len(base_direction_two) > 0: - all_relevant_pairs_info[pair]['curves'].append(base_direction_two) + all_relevant_pairs_info[pair]['curves'].append(base_direction_two) all_relevant_pairs_info[pair]['all_counts'] = len(pair_curves) all_relevant_pairs_info[pair]['carbon_counts'] = len(carbon_curves) return all_relevant_pairs_info