Topic: Determining beneficiary payouts
Heyooo! Looking for a bit of help w/ the beem.comment module.
It's easy to pull the comment.get_beneficiaries_pct()
and the comment.get_rewards()['author_payout']
and do a bit of math to find the value in SBD. But I'm having an issue, because currently, the blockchain is paying out in STEEM, not SBD.
So my question is:
- the values returned by
comment.get_rewards()['author_payout']
-- are the rewards the value of what the post was in STEEM, but normalized to the current SBD rate? Or is the value that this returns simply just what the reward payout WAS worth in SBD at the moment the 7-day window closed?
Currently, my project is accumulating the beneficiary rewards for all posts in a 7-day window and then redistributing them, and I need to be confident of what the values are in STEEM.
Follow up question:
- Would it be possible to modify the
comment.get_rewards()
method to include an argument for which asset you'd like the values returned as?- e.g.:
comment.get_rewards(asset="steem")['author_payout']
orcomment.get_rewards(asset="sbd")
- e.g.:
Thoughts?
Cheers!