You are viewing a single comment's thread from:

RE: Another Puzzle: Why is the blockchain's reported median price higher than the actual price of STEEM?

in #steem2 years ago

I guess the point is that the "current_median_history" value is not really a median, but rather that this was a kluge that was used to depeg the SBD, so that conversion from SBD to STEEM pays less than 1 SBD when the SBD market cap is higher than 10% of the STEEM market cap?

Yes, this is my understanding, this is how the "haircut rule" was implemented. Basically this "median price" is only used for SBD->STEEM conversion operations, so they put a max value in there. At one point I hunted through the code to try to figure out how the haircut rule worked and I have this comment in one of my scripts explaining how to get the number:

Haircut rule: What would the price be if 9X of all SBDs bought all the STEEM?

Sort:  

I knew about the haircut rule, but didn't realize that this was how they had implemented it. I did the calculation in one of my scripts (which is how I first noticed the discrepancy), and it gives back the same answer by a different method (cross multiplication using numbers of token in circulation):

$ ./sbd_ratio.sh
Price: $ 0.2220
STEEM supply: 480295827
SBD supply (cap): 12108259
STEEM Market Cap (calculated): 106625673
SBD supply (cap) / STEEM CAP: 0.1136
SBD print rate: 0 (calculated), 0 (queried)

Lower threshold: 0.2521
Upper threshold: 0.280111

Calculated like this:

echo ${STEEM_SUPPLY} ${SBD_STOP_PERCENT} ${SBD_SUPPLY} | awk '{print "Lower threshold: " 10000 * $3 / ($1 * $2) }'
echo ${STEEM_SUPPLY} ${SBD_START_PERCENT} ${SBD_SUPPLY} | awk '{print "Upper threshold: " 10000 * $3 / ($1 * $2) }'

this is how the "haircut rule" was implemented

I would say that without the restriction of the median_price, the (current) haircut rule would not make sense. But the two mechanisms work independently of each other. As e.g. the earlier limits (printing reduction between 2 and 5 %) have shown.

Coin Marketplace

STEEM 0.22
TRX 0.25
JST 0.039
BTC 95428.83
ETH 3314.03
USDT 1.00
SBD 3.16