diff --git a/scripts/pricefeeds/config-example.py b/scripts/pricefeeds/config-example.py index 3dce06b9..01f5fbca 100644 --- a/scripts/pricefeeds/config-example.py +++ b/scripts/pricefeeds/config-example.py @@ -31,21 +31,21 @@ ## Asset specific Borrow/Short parameters ################################################################################ # Core exchange rate for paying transaction fees in non-BTS assets -default_core_exchange_factor = 0.95 core_exchange_factor = { - "USD" : 0.95, + "default" : 0.95, # default value + "USD" : 0.95, # asset-specific overwrite } # Call when collateral only pays off 175% the debt -default_maintenance_collateral_ratio = 1750 maintenance_collateral_ratio = { - "USD" : 1750, + "default" : 1750, # default value + "USD" : 1750, # asset-specific overwrite } # Stop calling when collateral only pays off 110% of the debt -default_maximum_short_squeeze_ratio = 1100 maximum_short_squeeze_ratio = { - "USD" : 1100, + "default" : 1100, # default value + "USD" : 1100, # asset-specific overwrite } ################################################################################ diff --git a/scripts/pricefeeds/pricefeeds.py b/scripts/pricefeeds/pricefeeds.py index b8c7f545..f51c4d10 100755 --- a/scripts/pricefeeds/pricefeeds.py +++ b/scripts/pricefeeds/pricefeeds.py @@ -566,18 +566,18 @@ def update_price_feed() : "maintenance_collateral_ratio" : config.maintenance_collateral_ratio[ symbol ] if (symbol in config.maintenance_collateral_ratio) - else config.default_maintenance_collateral_ratio, + else config.maintenance_collateral_ratio["default"], "maximum_short_squeeze_ratio" : config.maximum_short_squeeze_ratio[ symbol ] if (symbol in config.maximum_short_squeeze_ratio) - else config.default_maximum_short_squeeze_ratio, + else config.maximum_short_squeeze_ratio["default"], "core_exchange_rate": { "quote": { "asset_id": "1.3.0", "amount": int(denominator * ( config.core_exchange_factor[ symbol ] if (symbol in config.core_exchange_factor) - else config.default_core_exchange_factor + else config.core_exchange_factor["default"] )) }, "base": {