This is my 2nd Busy.org test to see if the Busy booster bot will pay.
Yesterday I had <100000000 follower mvest (calculated here: https://steemdb.com/api/accounts?account=hodlorbust) and today I come boasting 325697944 follower mvest according to my own calculation, although I notice steemdb.com hasn't updated with my new followers..
There's also a rumor that you need 500+ Steem in order for the bot to pay, so we'll see what happens after I submit this post :)
Here's the code I used to calculate my follower's mvest SP:
var followers = [];
steem.api.getFollowCount('hodlorbust', function(err, result) {
follower_count = result.follower_count;
steem.api.getFollowers('hodlorbust', 0, 'blog', follower_count, function(err, result) {
for (var j = 0; j < result.length; j++) {
followers[j] = result[j]['follower'];
}
steem.api.getDynamicGlobalProperties(function(err, result) {
spv = result.total_vesting_fund_steem.replace(" STEEM", "") / result.total_vesting_shares.replace(" VESTS", "");
steemPower = spv;
});
var totalSP = 0;
steem.api.getAccounts(followers, function(err, res) {
for (var j = 0; j < result.length; j++) {
userTotalVest = parseInt(res[j].vesting_shares.replace(" VESTS", ""))
- parseInt(res[j].delegated_vesting_shares.replace(" VESTS", ""))
+ parseInt(res[j].received_vesting_shares.replace(" VESTS", ""));
accountSP = userTotalVest * steemPower;
totalSP += accountSP;
}
console.log(totalSP);
});
});
});