You are viewing a single comment's thread from:

RE: Write a Steemit Web App: Part 12 - Voting

in #steemdev6 years ago

Anyone know how to get accurate historic payout values? Doesn't the figure used here for the reward pool balance relate to the present moment rather than to a specific time?

Sort:  

I'm looking for this now. :) I assume you solved your doubt at a certain point in time. Can you share your solution?

The only solution I have found for this involves looping through the array of votes that is stored, iirc, against comments - but i would need to look through my code and I am about to go to bed here ;)
If you are able to look at the database of the blockchain, you should be able to find an array that contains vote data and can figure it out from there. I'll look tomorrow if you still need more help.

All I can find is RShares and a time. I'll keep looking. Thanks! All I could think of was accessing historical reward pool data and comparing to that, but it would be less efficient if there were some other way.

Coin Marketplace

STEEM 0.17
TRX 0.12
JST 0.028
BTC 55350.11
ETH 2887.18
USDT 1.00
SBD 2.27