No need to "fix" stake_currency enum anymore
This commit is contained in:
parent
60b47b6eec
commit
a7246ba1ec
@ -48,11 +48,6 @@ def validate_config_schema(conf: Dict[str, Any]) -> Dict[str, Any]:
|
|||||||
conf_schema['required'] = constants.SCHEMA_TRADE_REQUIRED
|
conf_schema['required'] = constants.SCHEMA_TRADE_REQUIRED
|
||||||
else:
|
else:
|
||||||
conf_schema['required'] = constants.SCHEMA_MINIMAL_REQUIRED
|
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:
|
try:
|
||||||
FreqtradeValidator(conf_schema).validate(conf)
|
FreqtradeValidator(conf_schema).validate(conf)
|
||||||
return conf
|
return conf
|
||||||
|
Loading…
Reference in New Issue
Block a user