diff --git a/fastlane_bot/config/network.py b/fastlane_bot/config/network.py index 70b4e562a..621eaea16 100644 --- a/fastlane_bot/config/network.py +++ b/fastlane_bot/config/network.py @@ -280,7 +280,6 @@ class ConfigNetwork(ConfigBase): # FLAGS ####################################################################################### - GAS_TKN_IN_FLASHLOAN_TOKENS = None IS_NO_FLASHLOAN_AVAILABLE = False # HOOKS diff --git a/fastlane_bot/events/interface.py b/fastlane_bot/events/interface.py index a0f200db3..1672cfafc 100644 --- a/fastlane_bot/events/interface.py +++ b/fastlane_bot/events/interface.py @@ -492,9 +492,8 @@ def get_tokens(self) -> List[Token]: token_set.add(self.create_token(record, f"tkn{str(idx)}_")) except AttributeError: pass - if self.ConfigObj.GAS_TKN_IN_FLASHLOAN_TOKENS: - token_set.add(Token(symbol=self.ConfigObj.NATIVE_GAS_TOKEN_SYMBOL, address=self.ConfigObj.NATIVE_GAS_TOKEN_ADDRESS, decimals=18)) - token_set.add(Token(symbol=self.ConfigObj.WRAPPED_GAS_TOKEN_SYMBOL, address=self.ConfigObj.WRAPPED_GAS_TOKEN_ADDRESS, decimals=18)) + token_set.add(Token(symbol=self.ConfigObj.NATIVE_GAS_TOKEN_SYMBOL, address=self.ConfigObj.NATIVE_GAS_TOKEN_ADDRESS, decimals=18)) + token_set.add(Token(symbol=self.ConfigObj.WRAPPED_GAS_TOKEN_SYMBOL, address=self.ConfigObj.WRAPPED_GAS_TOKEN_ADDRESS, decimals=18)) return list(token_set) def populate_tokens(self): diff --git a/fastlane_bot/events/utils.py b/fastlane_bot/events/utils.py index 154683b69..719ebf09b 100644 --- a/fastlane_bot/events/utils.py +++ b/fastlane_bot/events/utils.py @@ -637,10 +637,6 @@ def get_config( cfg.LIMIT_BANCOR3_FLASHLOAN_TOKENS = limit_bancor3_flashloan_tokens cfg.DEFAULT_MIN_PROFIT_GAS_TOKEN = Decimal(default_min_profit_gas_token) - cfg.GAS_TKN_IN_FLASHLOAN_TOKENS = ( - cfg.NATIVE_GAS_TOKEN_ADDRESS in flashloan_tokens - or cfg.WRAPPED_GAS_TOKEN_ADDRESS in flashloan_tokens - ) return cfg diff --git a/fastlane_bot/tests/test_034_Interface.py b/fastlane_bot/tests/test_034_Interface.py index 8b7f3dea8..82a98ee87 100644 --- a/fastlane_bot/tests/test_034_Interface.py +++ b/fastlane_bot/tests/test_034_Interface.py @@ -35,7 +35,6 @@ cfg_mock = Mock() cfg_mock.logger = MagicMock() -cfg_mock.GAS_TKN_IN_FLASHLOAN_TOKENS = False qi = QueryInterface(mgr=None, ConfigObj=cfg_mock) qi.state = [{'exchange_name': 'uniswap_v2', 'address': '0x123', 'tkn0_key': 'TKN-0x123', 'tkn1_key': 'TKN-0x456', 'pair_name': 'Pair-0x789', 'liquidity': 10}, {'exchange_name': 'sushiswap_v2', 'address': '0xabc', 'tkn0_key': 'TKN-0xabc', 'tkn1_key': 'TKN-0xdef', 'pair_name': 'Pair-0xghi', 'liquidity': 0}]