Hi Steemians,
We have made a few updates, mostly to fix some issues regarding SPP distribution, and to make it easier for us to replay our algorithm after pushing some fixes.
Something that I ve pushed back for too long and was doing manually every time.
When some new code is pushed and must affect the previous blocks as well, a replay is needed. The database needs to be cleared and all the jobs regarding SPP calculation need to be relaunched.
I've created an endpoint that launches an algorithm to execute this replay.
// Starting replay to get all the SPP since they were released.
console.log("Starting Replay...");
console.log("Updating SteemPlus Points for comments transfers and reblogs");
await spp.updateSteemplusPoints();
console.log("Done updating SPP");
console.log("Starting Delegations");
await spp.payDelegations();
console.log("Done rewarding delegations");
console.log("Debiting premium subscriptions");
await premium.debitPremium();
console.log("Done debiting");
console.log("Start paying weekly rewards");
await spp.payWeeklyRewards();
console.log("Done paying daily rewards");
console.log("Loading ads");
await ads.add();
console.log("Done loading ads");
console.log("Done replaying");
You can try and see the calculation of SPP by running localhost:3000/replay/[MASTER]
[MASTER] being a password set in your .env file.
When I ll have time, I ll completely change the SPP calculation to a block streaming method, instead of using SteemSQL.
After talking with @masoom, I realized that delegations rewards were broken in a very specific case : when a user delegated to
@steem-plus, undelegated then delegated again.
This is now fixed. Delegate to us to get more SPP ! ;)
At the end of each week (sunday night), the 10 top SPP earners will get extra SPP.
There was a problem with the computation of this bonus, that has now been fixed. Thanks @jason7282 for reporting the issue!
For information, you can check your current rank on steemplus.app, on the Ranking tab.
This update also included the addition of endpoints used for the Ads feature, coming soon on SteemPlus.
https://github.com/stoodkev/steemplus-api
Join us on Discord
npm installLOGIN, PASSWORD, SQL_API and DB.npm run startlocalhost:3000.@stoodkev and @cedricguillas for @steem-plus
Like what I do? Vote @stoodkev for witness!