File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,11 @@ def validate_config(self, config: dict) -> None:
8484
8585 available = {
8686 m .get ("info" , {}).get ("dex" )
87- for m in self .markets .values ()
87+ for m in self .get_markets (
88+ quote_currencies = [self ._config ["stake_currency" ]],
89+ tradable_only = True ,
90+ active_only = True ,
91+ ).values ()
8892 if m .get ("info" , {}).get ("hip3" )
8993 }
9094 available .discard (None )
@@ -93,7 +97,8 @@ def validate_config(self, config: dict) -> None:
9397 if invalid :
9498 raise ConfigurationError (
9599 f"Invalid HIP-3 DEXes configured: { sorted (invalid )} . "
96- f"Available DEXes: { sorted (available )} . "
100+ f"Available DEXes matching your stake currency ({ self ._config ['stake_currency' ]} ): "
101+ f"{ sorted (available )} . "
97102 f"Check your 'hip3_dexes' configuration!"
98103 )
99104
You can’t perform that action at this time.
0 commit comments