You are viewing a single comment's thread from:
RE: Steem for script kiddies: SBD debt ratio
I guess the code for the calculation of the print rate should be there: https://github.com/steemit/steem/blob/master/libraries/chain/database.cpp#L3855-L3887.
Thanks again for the link. It looks like that got it. Before work this morning, I updated the script to calculate the SBD print rate and display it side by side with the value stored in the blockchain.
$ ./sbd_ratio.sh
Price: $ 0.267
STEEM supply: 448147324
SBD supply (cap): 11295999
STEEM Market Cap (calculated): 119655335
SBD supply (cap) / STEEM CAP: 0.0944
SBD print rate: 0.56 (calculated), 5600 (queried)
That's a perfect result! :-)
However, it is still not clear to me why 0.5 was not added directly.
Agreed. I'm assuming the original calculation was just a programming error.