Steem2Fiat 1.1.0 Release - Updates and Bugfixes
Steem2Fiat 1.1.0 Release - Updates and Bugfixes
![image.png](https://steemitimages.com/640x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1515443633/uqoxzj43rmfw7kk3bce4.png)
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
NaN
as 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
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
I'd uninstalled version 1.0.2, but this update put it right back in my active list. These numbers are exactly what I'm looking for. Thank you!
Glad to hear it! If you've got any more feature requests, let me know!
Hmm... A fun vanity feature would be to do the inline fiat conversion for the various line items of the Wallet page.
I've also noticed that values don't consistently update right away after an upvote the way they do on the unmodified site, though that's a minor thing.
Consider the wallet page as good as done :P
The second issue might be a bit of a head scratcher. Looks like once I start messing with the DOM, React doesn't do as good of a job changing it anymore. I'll play around with it.
If it helps, it seems that it works more reliably when upvoting from 0 to a nonzero value, than from any nonzero value to a greater value.
Any word on why the fiat conversion hasn't been working for the past few days?
yeah it's cuz I'm a shit programmer
I'll ping you when I figure it out
tight.
The fiat numbers have been equal to the Steem numbers for the last few days, and the extension sits on a blue spinner if I try to look at the settings. Is something down?
Hey @maxg I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x