You are viewing a single comment's thread from:

RE: Why is median_history_price no longer the median of feed price? My investigation.

in #witness-category6 years ago

Thanks for the investigation and sharing the analysis.

I think for the last question, the answer is in your own paragraphs:
“But the new question comes: The sbd_print_rate is calculated from the supply of STEEM & SBD and the median_history_price and will be zero when STEEM_SBD_STOP_PERCEN(10%) reached.”

when STEEM_SBD_STOP_PERCEN(10%) reached so it only needs to be equal to 10%

“But the median_history_price always be checked to force SBD to remain at or below 10% of the combined market cap of STEEM and SBD.”

remain at...10% So SBD can reach that 10% level which would trigger the zeroed of the print rate and would stay at 0 while the debt remains at 10%

The code only prevents it to go higher than 10% it does not prevent it from reaching 10%

Posted using Partiko iOS

Sort:  

But it seems the percent_sbd is calculated with the virtual STEEM supply, while the debt ratio calculation fixes the SBD market cap with the actual STEEM supply - as a result, the 10% SBD debt can be reached, but the 10% SBD_STOP_PERCENT cannot. (However, I'm still not 100% sure I understood it correctly?!)
edit: I was wrong and I think you are right

It is because forced type conversion is used in the code.
When percent_sbd is 999.9973478070555, it return 999, so we got sbd_print_rate return 100(1%) .

Right...

Posted using Partiko iOS