What would happen if all of your followers vote %100 on your post?

in #steem8 years ago (edited)

Did you ever wonder this? I did. And here's steem-python to the rescue. This little python script;

  • will iterate through your followers and sum their effective VESTS
  • Calculate how much $$$$ will these VESTS generate
from steem import Steem
from steem.account import Account
from steem.amount import Amount
def effective_vests(acc):
    own_vests = Amount(acc['vesting_shares'])
    incoming_vests = Amount(acc['received_vesting_shares'])
    outgoing_vests = Amount(acc['delegated_vesting_shares'])
    return own_vests.amount + incoming_vests.amount - outgoing_vests.amount
def get_total_vest_of_followers(username):
    s = Steem(nodes=["https://api.steemit.com"])
    reward_fund = s.get_reward_fund('post')
    price = s.get_current_median_history_price()
    quote = Amount(price["quote"])
    base = Amount(price["base"])
    account = Account(username, steemd_instance=s)
    followers = account.get_followers()
    vests = 0
    for follower in followers:
        follower_acc = Account(follower, steemd_instance=s)
        follower_vests = effective_vests(follower_acc)
        print("Fetching follower info: %s - vests: %s" % (follower, follower_vests))
        vests += follower_vests
    print("Total vests", vests)
    vests = (vests * 1000000) * 0.02
    share_on_reward_fund = vests / float(reward_fund.get("recent_claims"))
    to_steem = share_on_reward_fund * Amount(reward_fund.get("reward_balance")).amount
    conversion_rate = base.amount / quote.amount
    post_reward_value = conversion_rate * to_steem
    print("Expected reward value:", post_reward_value)
    return post_reward_value
get_total_vest_of_followers("emrebeyler")

See it nicely formatted at Github Gists

Result


If all of my followers will upvote this post with %100, I will get $275.55. Let's make it real. 🤓

Screen Shot 2018-03-28 at 11.24.55 PM.png

Notes


  • If you don't have a python environment but want to learn your potential, just request it from the comments, and I will calculate it for you.

  • If your follower count is high, this script might take some time...

  • If you want to understand the math behind it, have a look to @yabapmatt's How to calculate value of vote post.

  • VP factor of the followers is ignored for the simplicity.

Grazie.

Sort:  

Can you check mine please? This would be cool to know!

Yours is 378$. You can retrieve this information on http://deepsteem.com by yourself now.

If only that were the case...

(Just gave you a witness vote btw, I've seen you around quite a bit and I know how great of a coder you are because I was pipped to the post for that abusereports bounty by somebody - not pointing any fingers!)

thanks for the vote! :)

That is a really cool tool :) just for fun ran it on my server and here is what I got.

Not as much as you but still not bad ))

Only $6... guys you need to follow me xD

I voted 100%, and you got 002 :) if the others are approaching then you will reach $275.55
Forgive me for such a small contribution. but I can vote better in the future :) I hope

I tend to manually curate all the time and turn my attention to a small group of people and vote mostly at 100%.. I enjoy tools like https://www.steemnow.com/ to calculate what I want to upvote on comments.

This is an awesome little script. On another social network I would imagine this would probably be one of those apps that would become super popular for a week or more, where people posted how much their followers are worth.

This is, of course, by the count so that we will know how many things are

If i would get a reply then thanks for the gift,i will surely vote you on witness,but whats your name their?

You can vote at steemit witnesses page by going down on the top 50 list and type my name "emrebeyler" in the input.

Screen Shot 2018-03-29 at 9.20.53 AM.png

Will surely vote
Stay connected sir.

Awesome post! I like it :) 👍
upvote-bild-fertig.gif
You got an upvote!
For more upvotes follow this account 👊🏼

Coin Marketplace

STEEM 0.09
TRX 0.30
JST 0.035
BTC 110927.66
ETH 3906.43
USDT 1.00
SBD 0.58