Skip to content

Commit

Permalink
witness can adjust parameter: "short_squeeze_ratio" "maintenance_coll…
Browse files Browse the repository at this point in the history
…ateral_ratio"
  • Loading branch information
pch957 committed Oct 16, 2015
1 parent 7b41b53 commit 30cb485
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/pricefeeds/config-example.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
################################################################################
discount = 0.995
core_exchange_factor = 1.05 # 5% surplus if paying fees in bitassets
maintenance_collateral_ratio = 1750 #Call when collateral only pays off 175% the debt
maximum_short_squeeze_ratio = 1100 # Stop calling when collateral only pays off 110% of the debt

minValidAssetPriceInBTC = 0.00001
change_min = 0.5
Expand Down
2 changes: 2 additions & 0 deletions scripts/pricefeeds/pricefeeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ def bts_yahoo_map(asset) :
"amount": numerator
}
},
"maintenance_collateral_ratio": config.maintenance_collateral_ratio,
"maximum_short_squeeze_ratio": config.maximum_short_squeeze_ratio,
"core_exchange_rate": {
"quote": {
"asset_id": "1.3.0",
Expand Down

0 comments on commit 30cb485

Please sign in to comment.