No need to "fix" stake_currency enum anymore

This commit is contained in:
Matthias 2020-01-11 12:51:42 +01:00
parent 60b47b6eec
commit a7246ba1ec

View File

@ -48,11 +48,6 @@ def validate_config_schema(conf: Dict[str, Any]) -> Dict[str, Any]:
conf_schema['required'] = constants.SCHEMA_TRADE_REQUIRED
else:
conf_schema['required'] = constants.SCHEMA_MINIMAL_REQUIRED
# Dynamically allow empty stake-currency
# Since the minimal config specifies this too.
# It's not allowed for Dry-run or live modes
conf_schema['properties']['stake_currency']['enum'] += [''] # type: ignore
try:
FreqtradeValidator(conf_schema).validate(conf)
return conf