Steem2Fiat 1.1.0 Release - Updates and Bugfixes
Steem2Fiat is a Google Chrome extension that makes it easy to visualize current payouts in a fiat of your choice. This PR brings several important bugfixes to the extension, and also adds some new helpful features per user request. Changes have been published to the Chrome Web Store and should be live soon. Check to see that you are running version 1.1.0!
Minor Bugfixes
- When an error occurs, will set exchange rate to 1 and currency to USD instead of showing
NaNas it does now - Recalculation will occur on option save instead of on page reload.
Major Bugfix - steemd RPC repalcement
The steemd RPC endpoint went down for a few days - causing the entire Chrome extension to crash. Users would see a nasty error all over the page instead of a graceful failure. To fix this, this commit added multiple RPC endpoints as well as some dummy data to serve up in the case that all 5 RPC endpoints were down.
TODO: add graceful error handling as well as a way to show errors to the user
Major Bugfix - Improve Payout Calcuations
I had a poor understanding of how payouts worked on Steem. I figured that if a post had $1.00 showing in payouts, that meant it would receive .5 SBD and .5 STEEM, and if the feed ratio was adjusted by the Witnesses, then the payout ratio would be adjusted. That is NOT how it works - see this fantastic post for more details. To this end, the STEEM/SBD ratio control has been disabled and is now read-only. Also, the payout algorithm has been updated.
TODO: Unfortunately, since the extension only parses the raw text of the HTML, it can only show payouts at current STEEM/SBD prices. This makes it inaccurate on older posts that have already paid out- since it is impossible to know the Feed price of that post. I have a 10 SBD, $80 USD bounty open related to that issue here
Add Liquid Pricing Option
I got a request to only show the value of SBD, since that is the liquid payout that can be immediately cashed out. That feature has been implemented - hiding the SP cut is now an option.
Show New Exchange Rate Before Save
This is a nice little UI bonus. Now, when you change the options around, the exchange rate shown will update with a preview. Before, you'd have to hit save and reopen the extension to see.Add PHP (₱) Currency
The Philippine Piso was not available using the previous Fiat<->BTC exchange rate API I was using (blockchain.info) so I added a second API (coingecko). Hopefully Steemit's Phillipine userbase will be able to make better use of the extension now!
TODO: I haven't found a good API for the Nigerian Naira (NGN) exchange rate. If someone could point me in the right direction that would be fantastic!
Pull Request: here
Proof Of Work Screenshot:
Posted on Utopian.io - Rewarding Open Source Contributors