You are viewing a single comment's thread from:

RE: The Daily Adventures of a SteemPeak Developer #4 - SCOT Rewards Included in the Feeds

in #dailyadventures5 years ago

This is an awesome implementation @asgarth! I'm not a programmer, but looking at the info you get back from the scot instance I see

"total_payout_value":0,

Is that in USD or Pal?

Because I think it would be cool if the USD value shown was the sum of all rewards. Once these scot instances take off the user will have to do a lot of math, as well as going to check the prices of all tokens to know the total value of a post. Just some thoughts. :)

Excellent work as always!

Sort:  

Glad you mentioned this. We have talked about this topic internally too in the past days. Unfortunately the value returned is in PAL and there isn't an easy way to show the USD reward. We had a way to get the USD amount for standard Steem Payout, but now that we have more than one token is not so easy to get the total value.

Probably this can be done for the 'estimated' value on pending payouts (it will take more code and some more API calls). But the real challenge is to get the correct value for post already paid because I don't think there is an API to view the historical price of the steem-engine tokens. Getting the USD payout for a post paid 1 month ago will be really difficult.

Coin Marketplace

STEEM 0.22
TRX 0.20
JST 0.035
BTC 95967.22
ETH 3310.18
USDT 1.00
SBD 3.15