ShowMeMySteemReward - Add post reward

in #utopian-io8 years ago (edited)

The following post is made to explain one feature that I added on my previous development. I have added the possibility to get the value of a contribution. I'll explain more precisely of a contribution is estimated.

After the first release of this tool, @Someguy123 tells me that could be a good idea to display the repartition of the reward between author and curators. But at that time, I only wanted to show the true value of a reward (and not a contribution).

Now, I'm little bit more confident with steemjs and I can work with more data.

Show me my post reward

Contrary to what one might think, an author gets more than 75% of the reward of a post.

From the official @steemitblog release:

all curation rewards earned by voting in the first 30 minutes after a post is made will be shared with the author. If you vote immediately after a post is made, then 99.94% of the curation reward will go to the author. If you vote after 15 minutes, then 50% will go to the author. Any votes made 30 minutes or later 100% will go to the curator. This only applies to the curation rewards. The author still gets at least 50% of the total rewards.

And according to this information, I would like to estimate the author reward based on it. it's pretty easy because the API and the steem.api.getContent() function gives all informations.

image.png

Sum of all active vote weight (it's an automatic self upvote)

image.png

Total weight

And the result is...

image.png

The post had only a automatic self upvote

The interface

The interface is divided in 4 sections.

  • Input
    • Search by reward (in SBD)
    • Search by URL contribution
  • Estimated reward (only displayed when user search a contribution)
  • USD and STEEM values
  • Market price

image.png

URL accepted

The form accept only URLs provided by condenser and busy (the URI must be /tag/@username/permlink). A future update could add dtube

In order to prevent unwanted results, the app displays this messages

image.png
image.png


Please, let me know if you need more informations about this app.

Pull Request : https://github.com/evildido/ShowMeMySteemReward/pull/6
Apps : https://evildido.github.io/ShowMeMySteemReward/
Repo : https://github.com/evildido/ShowMeMySteemReward



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @evildido I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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

Coin Marketplace

STEEM 0.04
TRX 0.33
JST 0.092
BTC 63073.83
ETH 1770.42
USDT 1.00
SBD 0.39