This is in some sense a continuation of my previous post about a small contribution to Steemit, which was rejected as a development contribution, but in my view is a combination of bug hunting and suggestion. But no matter, in this post I am at it again, this time covering the implementation of my suggestion, which I had done over the last weekend.
Payout Breakdown
Knowing how the payout works from the Steem blockchain, I wanted to provide a little more information in the UI to display the breakdown in terms of estimated SBD and STEEM POWER to be received on payout. What I have is not perfect, but a slight improvement over what exists now.
- For pending payouts and past payouts, it now shows (X SBD, Y SP) below the $Z amount of payout.
- It takes into account whether or not 50/50 option or 100% SP option was selected.
- It uses current price feed, so past payouts will not necessarily show the correct amount of SP, but SBD will be correct.
- Curation and Beneficiaries are not accounted for in pending payouts. That requires a lot more changes to handle properly.
Here are two screenshots that show this in action.
This one shows the pending payout change.
This one shows how it looks after payout.
Change Details
A diff can be viewed here.
There are two parts to this change.
The first is to make the feed price available to the voting component which shows information when you click the payout number. That's in line 525, and actually is ripped out of the UserWallet.jsx. I will pull this into a common utility soon to promote its reuse next chance I get.
The second part is the computation itself. I've walked through this before here, as well as here, so it was a matter of cranking out the formula, which you'll see on line 279.
Another point of note is the percent_steem_dollars parameter, which is 10000 for the 50/50 option and 0 for the 100 SP option. (Percentage multiplied by 100). This can be found out here and here.
Finally, adding the hint to the card itself is done in line 320 for the pending payout and line 359 for post payout. The way it is done here makes it so it does not need anything placed in all the individual localization files, and is done in a manner consistent with how the display works in the user wallet.
Testing
These changes were tested locally, on my posts as well as a post that was set to 100% power up, and on one that was past payout.
Appealing the One Commit Rule for Utopian Development Contributions
To the utopian moderator: this may be considered as both a suggestion as well as implementation. Keeping in mind rewards that have been given to utopian posts suggesting improvements to the UI about the payouts, as a developer I've also implemented such a thing. Please take that into consideration. Thanks!
Further Thoughts
I'm excited to be able to make this change that I've been thinking about for awhile, and hope it will be available in the next future. It turned out to be much easier than I was thinking it would be. Yes, plenty of other tools show your post breakdowns, but it will be nice to see it quickly by clicking your post amount.
I'll see about further improvements that can be made to this as well. I'm also soon to work on a small tutorial to get your own UI deployed to a cloud service like vultr.com, as suggested by @twodollars. Until next time, cheers!
Updates
I did not realize just how fast it got rolled out, and I see posts about it in various places now, and that feels great! Happy to do what I can.
Posted on Utopian.io - Rewarding Open Source Contributors
Hey @eonwarped 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
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
That's a very nice upgrade to the post payout UI. Thanks for your work!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
You are welcome :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Fantasic work Evan, this will be a super nifty tool!
Keep it up bud, you're amazing :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Excellent work Eon!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
YOU - IS - ROCKSTAR!
Really mate, you're one of the GREATEST guys I ever met in Steem and outside of it.
I hope I can count on your friendship for years to come!
Cheers
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Likewise! I just need an electric guitar now.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This is great, Eon. You're always working towards improvement (not just of yourself but of your communities in which you're involved). You're a real asset to Steemit and it's about time they noticed. Kudos.
Cheers
Anj xx
PS Get the ale in :D
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Cheers! And thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Amazing feature and it is already integrated for all. Well done. Are you working with the Steemit inc developer team?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I am not, this was just kind of playing around with the website for myself. Thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Awesome work @eonwarped, this is agreat way for minnows to understand faster how the payout works, well even for people not so minnow ha, awesome awesome work, love it!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I hope it helps just a little. I expect there still to be confusion though. Thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
yeah, but this things does help a lot, I'm sure you'll come up with bigger and better ideas :D
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for your contribution Evan. This is a great help to the community and I'm proud that someone I know did it..hahahahah
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Great job :) Congrats on your first acceptance!!!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This is really a cool feature added very useful to track real time earnings :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Nice Work!
Da BOT will up-vote this post if you make a minor edit after the timer expires, it is 'daily" so I am thinking 24 hours. So glad to be in the same Gang with you Bud! U ROCK!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Me too! Thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This is very cool. It looks like you have put a lot of time and thought into it. Great job in working to bring this to the platform! -@bozz
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
It definitely was a fun task though. Happy it worked!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Great work brother and this change will make Steemit payments estimation very easy for newbies like us!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Yes indeed. Thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Nice job! I started noticing the change earlier today, great feature!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks a ton!
Really awesome future!
Keep this work going! :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Will do!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Will do!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Great post! I am a good member but i dont get alot authors and curcators money how do i get them? i post everyday couple of messages i bought steem power alot more!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks a lot for your contribution! It is really great.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanky for the mod on the payouts! Upvoted. =)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit