Payout Valuation Help [10 SBD/$80 USD Bounty]
The Steem2Fiat Chrome Extension is a tool that helps users better understand the real-world value of their posts. It does this by examining the content of the page inline, and adding data wherever it finds a payout <div>. So
Becomes
The Problem
When I created Steem2Fiat I assumed that the value in the div prefaced with $ was indicative of sort of amalgamation of Steem+SBD that would be paid out. I recently found out that it is actually generated by Condensor/Busy/Etc. and is based on a moving average of STEEM prices, and (maybe?) fixes SBD at $1. So my method of using the inlined dollar value is pretty much bunk.
Example
Here is a screenshot of one of my posts that has just payed out. It was supposed to pay out to the author (me) $15.13 USD, apparently.
What I actually received was 7.56 SBD and 1.158 STEEM, worth over $80 at the time of writing. Hence my confusion.
What I Want
In order for this extension to be useful, I need a clear path from the payout number shown below to the actual STEEM/SBD values the writer will receive. From there, I am already pulling current market prices and exchange rates, and I already can inject the final value back into the page.
The easy way: If someone could explain the formula in human-readable terms with 2-3 examples, that would be amazing. If they could point to a Steemit or Busy API that would let me do the calculations myself, that would also be great. Just provide documentation of how the calculations work in a pull request (code encouraged, but not required) and I'll be very happy.
edit: The above idea won't work for old posts that have already paid out, because the feed price changes w.r.t. time. I need to look at the properties of the underlying object in React.
Idea - React Related
Here is a screenshot of a comment on one of my posts, examined using React Dev Tools. I can see the properties of the post including rshares, SBD, and STEEM payouts, so I think that they should be accessible from the content script injected into the page. Unfortunately, I'm no React expert and Google hasn't been very helpful. I'd love to have a way to "clip in" to the Redux state and grab those values. From there it should be pretty easy to calculate the real value of the post.
This method is great because it lets me filter for things like post benefactors and will make it easy to add more features in the future.
To this end, I'm offering a bounty of 10 SBD / $80 USD MINIMUM. If the price of SBD dips below $8, you'll get more. Any way you want it - as STEEM, as SBD, sent to a voting bot of your choice, converted to ETH and put in a poorly implemented Smart Contract, I don't care. All yours.
Thank You For Reading!
If you have any questions, I'm maxg in the Utopian Discord. You can also find my email at https://maxgerber.com
Posted on Utopian.io - Rewarding Open Source Contributors