Update on Steem Bot Analysis :SBD and % Upvote View of Bot Upvotes

in utopian-io •  7 years ago  (edited)

New Features added to Steem Bot Analysis

SteemBotAnalysis is a tool developed to analyze :

  • How old are the posts at the date of upvote
  • According to the chosen bots
  • According to the chosen date

Features added

  • Before

The % upvote and SBD pay-out of the bid-bots were not shown.

  • After

% Upvote field added to see which post have been voted with what % of the bid-bot

image.png

SBD pay-out of the bid-bot also shown to see how much upvote in SBD the post have taken.

image.png

Implementation of the changes

  • Finding the voting percent

Geting the result from the steem.js API call, the percentages are taken from the result array and written in the div.

for (let i = 0; i < all_votes.length; i++) {
          var all_voters = all_votes[i].voter;
          if (all_voters == voter) {
            document.getElementById('vote_Weight').innerHTML = document.getElementById('vote_Weight').innerHTML + " % " + (all_votes[i].percent / 100) + "<br />";
  • Finding the SBD value of the vote

Global properties, current feed price and current reward status are taken with below function.

function calc_global() {
      steem.api.getDynamicGlobalProperties(function(err, result) {        
        steem.api.getFeedHistory(function(err, result2) {
          console.log(err, result2);
          steem.api.getRewardFund('post', function(err, result3) {
            console.log(err, result3);
            var reward_balance = parseFloat(result3.reward_balance.split(" ")[0]);
            var recent_claims = parseFloat(result3.recent_claims);
            var steem_reward_per_vest = (reward_balance / recent_claims);
            calculate_steempov(result, result2, steem_reward_per_vest);

          });
        });
      });
    }

Based on the results of the first function, the SBD power of the current bot at %100 power is calculated with below function.

function calculate_steempov(globals, feed_price, rpv) {
      total_vesting_shares = globals.total_vesting_shares;
      total_vesting_fund_steem = globals.total_vesting_fund_steem;
      feed = feed_price;    
      steem.api.getAccounts([voter], function(err, response) {
        vesting_shares = parseFloat(response[0].vesting_shares.split(' ')[0]);
        delegated_vesting_shares = parseFloat(response[0].delegated_vesting_shares.split(' ')[0]);
        received_vesting_shares = parseFloat(response[0].received_vesting_shares.split(' ')[0]);
        steem_power = (vesting_shares + received_vesting_shares - delegated_vesting_shares);            
        var feed_arr = feed_price.current_median_history.base;
        feed = feed_arr.split(" ")[0];
        max_sbd = (rpv * steem_power * 0.2) * feed * 100000;
      });
    }

variable max_sbd stores the SBD of the bot at %100 voting power.

  • Calculating the SBD of the post

 var sbd_pay = (all_votes[i].percent / 100) * max_sbd;
            document.getElementById('vote_sbd').innerHTML = document.getElementById('vote_sbd').innerHTML + (sbd_pay / 100).toFixed(2) + " SBD" + "<br />";

sbd_pay is found multiplying max_sbd with percent vote.

Links

Steem Bot Analysis : https://fdsteemtools.neocities.org/botanalysis.html
GitHub : https://github.com/firedreamgames/steembotanalysis

Contact

Proof of Work

image.png



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Would it not be better if programmers spent their time trying to fix steemit itself, or offering an alternative to it that will not eat its users' rewards?
Without bidbots, I would not have surpassed 15SP until now.
With bidbots, I can take haters' flags, retaliate, fight spam and abuse, be retaliated against, and still rise.
And I do not eat ass.

@stimialiti,
I wouldn't agree more and I know that there are dev's spending their time on trying to find ideas on fixing steem itself.

FD.

This time, I referred to steemit, not to steem itself.
Could not you focus on trying to make steemit work instead of what you did before you posted this thread?
And if not, why not offer an alternative to steemit.com, which is not as expensive to use as busy.org and its inferior likes?
Or a well functioning blockchain explorer, which shows the truth in real time with no lag, which currently no blockchain explorer does.
There is too much what to do, and people do other things out of boredom like you did here.

You got upvoted from @adriatik bot! Thank you to you for using our service. We really hope this will hope to promote your quality content!

@stimialiti;
I would really like to do if I could.
Being just an amateur, what you say is way above me.
But I know @r351574nc3 is working on a such a revolutionary development.

In this case, fair enough.
I hope you will improve and I wish I could get myself to your level and above.
Is he working on a blockchain explorer or on an interface?
And what is revolutionary about it?
It is just needed.
Satisfaction of needs is more important than revolution as far as I am concerned.

You got a 12.42% upvote from @ubot courtesy of @stimialiti! Send 0.05 Steem or SBD to @ubot for an upvote with link of post in memo.

Every post gets Resteemed (follow us to get your post more exposure)!

98% of earnings paid daily to delegators! Go to www.ubot.ws for details.

You got a 12.07% upvote from @luckyvotes courtesy of @stimialiti!

You got a 16.49% upvote from @ubot courtesy of @stimialiti! Send 0.05 Steem or SBD to @ubot for an upvote with link of post in memo.

Every post gets Resteemed (follow us to get your post more exposure)!

98% of earnings paid daily to delegators! Go to www.ubot.ws for details.

why is busy expensive to use? I never get what's the problem I don't see it, dmania and pretty much all other "apps" take beneficiary rewards, I haven't seen busy do that as of yet, they even used to give all curation rewards on comments to the authors.

Give ideas and propose solutions, I like busy because it works, the API is usually the issue with the lag, but everyone knows that, well a few people that have cared to find out whats causing what...

Cheers

Loading...

@youtake pulls you up ! This vote was sent to you by @stimialiti!

steem is fine, people are fucked, ask George Carlin, ...

You got a 12.53% upvote from @sleeplesswhale courtesy of @stimialiti!

Hey @firedream! Thank you for the great work you've done!

We're already looking forward to your next contribution!

Fully Decentralized Rewards

We hope you will take the time to share your expertise and knowledge by rating contributions made by others on Utopian.io to help us reward the best contributions together.

Utopian Witness!

Vote for Utopian Witness! We are made of developers, system administrators, entrepreneurs, artists, content creators, thinkers. We embrace every nationality, mindset and belief.

Want to chat? Join us on Discord https://discord.me/utopian-io

@Utopian-io, thank you.

Thanks for the contribution. It has been approved.


Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.

[utopian-moderator]

@amosbastian,
I checked your rating, objective and fair.
Thank you.

FD.

Your Post Has Been Featured on @Resteemable!
Feature any Steemit post using resteemit.com!
How It Works:
1. Take Any Steemit URL
2. Erase https://
3. Type re
Get Featured Instantly & Featured Posts are voted every 2.4hrs
Join the Curation Team Here | Vote Resteemable for Witness

good info my friend. thank you