SteemPlus Weekly leaderboard : API update and last week top users
Last week, we introduced our update to the SteemPlus landing page allowing you to check the weekly leaderboard.
Top SPP earners of the week share a bonus equal to 10% of all the SPP distributed during the week (excluding delegations, previous weekly bonus and reblogs).
Read on to see how our API takes care of this.
Weekly ranking
Our weekly ranking job performs as follow :
- It launches once a week on Sunday to Monday midnight UTC.
- It calculates the total amount of SPP shared during the week , excluding reblogs, weekly rewards and delegations.
// MongoDB query creation for total points
const totalPointQuery = [
{ "$match": { "typeTransaction": { $nin: [delegationType._id, reblogType._id, weeklyRewardType._id] }, timestamp: { '$gte' : startWeek, '$lt' : endWeek}, "user": { $nin: userNotIncluded.map(u => u._id)} } },
{ "$group":
{
"_id": null,
points: {
$sum: "$nbPoints"
}
}
},
]
- it checks who are the top 10 SPP earners of the week :
// MongoDB query creation for ranking
const weeklyQuery = [
{ "$match": { "typeTransaction": { $nin: [delegationType._id, reblogType._id, weeklyRewardType._id] }, timestamp: { '$gte' : startWeek, '$lt' : endWeek}, "user": { $nin: userNotIncluded.map(u => u._id)} } },
{ "$group":
{
"_id": "$user",
points: {
$sum: "$nbPoints"
}
}
},
{
$sort: { points: -1 }
},
{
$limit: 10
}
]
- The weekly reward pool equals 10% of the total distributed during the week. This pool is distributed to the top 10 earners as follow:
const percentageReward = [50, 25, 12.5, 6.25, 3.13, 1.56, 0.78, 0.39, 0.24, 0.15];
As you can see, the higher you are on the Top 10, the higher your bonus will be.
The top SPP earner of the week will get 50% of the 10% pool, that is a huge bonus of 5% of all SPP earned during the week (except for delegations and reblogs).
Last week winners!
1- @dhimmel 818.16,
2 - @randolphrope 409.08,
3 - @dreemit 204.54,
4 - @suggeelson 102.27,
5 - @tbnfl4sun 51.22,
6 - @dynamicrypto 25.53,
7 - @cranium 12.76,
8 - @the01crow 6.38,
9 - @jacekw 3.93
10 - @futuremind 2.45
How to earn SPP?
You can start earning SPP right now for getting in this week's leaderboard and earning extra SPP!
If you don't know what the SPP are about, check out our SPP tab on steemplus.app to see how you can get them, and use them to get @steem-plus votes and premium features.
Repository
https://github.com/stoodkev/steemplus-api
Pull Request
GitHub Account
Installation and updates (SteemPlus extension)
You can download and install SteemPlus directly from the Chrome Store if you are using Chrome or Firefox(follow this link for Chrome, this one for Firefox ).
See download page in here.
For installation procedures on Opera, please check our documentation.
Updates shouls occur automatically. If not, click right on the extension logo > Manage my extensions > Update.
Steem on!
@stoodkev and @cedricguillas for @steem-plus
Thank you for your contribution. Nice to see SteemPlus is becoming a full-fledged product, and Weekly Leaderboad is a decent update. It's nice to see that you have changed from var to let in most of the places.
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]
Thank you for your review, @codingdefined! Keep up the good work!
Bin begeistert. Werden bestimmt bald viele gute sachen kommen, bin mir ziemlich sicher, gute arbeit wie immer von euch.
This post has been just added as new item to timeline of SteemPlus on Steem Projects.
If you want to be notified about new updates from this project, register on Steem Projects and add SteemPlus to your favorite projects.
Thank you for making steemit through steemplus more and more interesting every day.
Hey, @steem-plus!
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!