From ff2577a7ad2bf12f5b0609cd27e699d89093cc21 Mon Sep 17 00:00:00 2001 From: Lesigh-3100 Date: Tue, 25 Jun 2024 16:48:58 +0300 Subject: [PATCH] fix keyerror for y_0 --- fastlane_bot/events/managers/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastlane_bot/events/managers/base.py b/fastlane_bot/events/managers/base.py index ca6361fbd..5cd2708ed 100644 --- a/fastlane_bot/events/managers/base.py +++ b/fastlane_bot/events/managers/base.py @@ -574,8 +574,8 @@ def get_strats_by_state(self, pairs: List[List[Any]], exchange_name: str) -> Lis pool["cid"] for pool in self.pool_data if pool["exchange_name"] == exchange_name - and (pool["tkn0_address"], pool["tkn1_address"]) in pairs - or (pool["tkn1_address"], pool["tkn0_address"]) in pairs + and ((pool["tkn0_address"], pool["tkn1_address"]) in pairs + or (pool["tkn1_address"], pool["tkn0_address"]) in pairs) ] strategies = [] for cid in cids: