RE: Witness Update - Help fix the SBD peg! by dropahead

View this thread on steempeak.com

Viewing a response to: @yabapmatt/witness-update-help-fix-the-sbd-peg

· @dropahead · (edited)
$0.50
### UPDATE

I managed to implement support for bias in publish_feed.lua (my tool to update your witness price feed: https://github.com/develCuy/lazy-steem) so you can use it like this:

``./publish_feed.lua --bias=300 dropahead http://cli-wallet-instance:8093``

### Original comment
Nice post! Can you elaborate on how exactly you transform 1 STEEM to 0.250 with a 300% bias? I'm very confused about it!
👍  , , , , ,
properties (23)
post_id19,865,429
authordropahead
permlinkre-yabapmatt-witness-update-help-fix-the-sbd-peg-20171209t035312412z
categorywitness-category
json_metadata"{"app": "steemit/0.1", "links": ["https://github.com/develCuy/lazy-steem"], "tags": ["witness-category"]}"
created2017-12-09 03:53:12
last_update2017-12-09 18:07:45
depth1
children1
net_rshares129,757,319,590
last_payout2017-12-16 03:53:12
cashout_time1969-12-31 23:59:59
total_payout_value0.376 SBD
curator_payout_value0.120 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length404
author_reputation7,413,102,413,009
root_title"Witness Update - Help fix the SBD peg!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (6)
@dropahead · (edited)
@yabapmatt, I did not use algebra in 17 years... but I found the formula!!

``STEEM quote = 1 - (BIAS%/(1 + BIAS%))``

Example:

``0.250 = 1 - (300%/(1 + 300%))``
properties (22)
post_id19,922,476
authordropahead
permlinkre-dropahead-re-yabapmatt-witness-update-help-fix-the-sbd-peg-20171209t171043378z
categorywitness-category
json_metadata"{"app": "steemit/0.1", "users": ["yabapmatt"], "tags": ["witness-category"]}"
created2017-12-09 17:10:42
last_update2017-12-09 17:18:09
depth2
children0
net_rshares0
last_payout2017-12-16 17:10:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length162
author_reputation7,413,102,413,009
root_title"Witness Update - Help fix the SBD peg!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000