Author and Curator rewards in HF19
Do you know what are the exact calculations in the steemit reward system? I was investigating for a long time but I could not find a clear answer. For this reason I decided to study directly the source code of steem, something a little complex, but I have achieved it. In this post I am leaving the results of this research, which I suppose will be of great help to many.
Before continue, I really recommend this infographic, which is a resume of this post and also a quick guide.
The voting power is a mechanism to have an stable economy. It is a mechanism to reduce the possibility that everyone could vote all the time and therefore a way to incentive the correct voting, proof-of-brain.
The voting power consists of a percentage, every time you vote the voting power is reduced a little bit, and at the same time it is regenerated at a rate of 20% per day (that is 100% in 5 days). This regeneration is not calculated every time a new block is created in the blockchain, but when you vote it does the calculation from the time since the last vote:
Bt is the block time,
Vt is the last vote time of curator,
t is the elapsed seconds, and
rp is the regenerated power. Then it is added to the last voting power
Vp0 and limited to 100% in order to calculate the current voting power
The curator can set a weight
w for his vote, from 0% to 100%. This weight can be positive (upvote), or negative (downvote or flag), and the power used for both cases is the same, then the weighted power
Finally, the voting power used
pu is a small part of this value, and it is calculated using the following formula:
For example, if the voting power is 100% and the weight is 100%, then voting power used is
(100% + 0.49%)/50=2.0098% which is rounded to 2%. If the voting power is 70% and the weight is 100%, then power used is
(70% + 0.49%)/50=1.4098% which is rounded to 1.4%.
If we assume that 0.49% can be neglected in the formula. Then the power used can be simplified:
The contribution of a vote to a post (or comment) is measured in
rshares, and they are calculated from the vesting shares of curators (steem power) and the voting power used.
Vs are the vesting shares of the curator, and
rs the rshares generated. The absolute value of
rs must be greater than 50 VESTS, this is a dust threshold, the minimum amount.
There is a pool of rewards called
reward_balance. This balance is distributed between the latest posts. Then the payout of a single post, measured in STEEM, is calculated as follows:
RS is the total rshares accumulated by the votes,
rb is the
rc is the
recent_claims (measured in VESTS). This two values are global variables (look their values at steemd.com). If we want to calculate the payout in SBD, then the steem is multiplied by its price:
Worth of a vote
The worth of a vote is calculated in the same way as the total payout, but using the rshares of the vote. One thing to keep in mind is that a regular user does not know what their Vesting Shares are, but only knows their STEEM POWER. The way to calculate the them is using other 2 global variables,
Vs are the vesting shares of the curator,
SP is the steem power,
TVs is the
TVfs is the
In this way, we can calculate the worth of a vote in a simplified way. Defining the voting power and the weight as values between 0 and 1 (0 for 0%, and 1 for 100%), the worth of a vote is:
Vp is the voting power,
SP is the steem power,
w is the weight of the vote, and
g is a global variable calculated as:
TVs is the
TVfs is the
rb is the
rc is the
recent_claims (measured in VESTS), and
price is the steem price. All of these 5 values are global variables (look their values at steemd.com).
Distribution of the total payout
The total payout is distributed between 3 parts: Author, curators, and beneficiaries. There is no a fixed percentage, but a series of calculations and transfers.
First, 75% are for the author. However, in the post maybe a percentage of it is defined for the beneficiaries. This is a new feature in the hard-fork 18 and allows new monetization options for developers working on Apps for STEEM.
Distribution to curators
The remaining 25% of the payout are for the curators. But some of their money goes back to the author, and the rest is finally distributed between curators. How is it calculated? First, lets define these values:
rs: rshares generated when the curator votes.
RS0: rshares accumulated by the post before the curator votes.
RS1: rshares accumulated by the post after the curator votes. That is
RS1 = RS0+rs
RST: total rshares after a week
The percentage of reward for a single curator is:
However, some of this percentage goes back to the author. If the curator votes 30 minutes after the publication of the post, then 100% is for him, but if it is between the first 30 minutes he only takes a part of them, the ratio between the time and 30 min, and the rest is for the author. Then
As we saw earlier, we can transform the rshares into STEEM or SBD with a global variable. Then if we multiply the numerator and denominator for the same value, we can calculate it in terms of STEEM or SBD. And next, multiplying it with 25% of the payout we can calculate the payout for a single curator:
P0 is the payout of the post before voting,
P1 is the payout of the post after voting, and
PT is the payout after 7 days (the final payout).
Important note: On steem, the formula to calculate the square root is not exact but approximate, to be able to make operations fast. Then the above calculations could differ a bit from the reality.
Steem incentives voting good content
What is the incentive for being an early voter? Being
P1 the payout of the post after a curator votes, consider 2 situations:
- After a week the post does not get more votes and stays the same.
PT = P1
- After a week the payout scales
ntimes, that is
PT = n * P1.
In the first case, the curator payout will be:
And in the second case, the curator payout will be:
Then the incentive for being an early voter is
sqrt(n). For instance, if the total payout scales 4 times, then the curator payout scales 2 times. If the total payout scales 9 times, the curator payout scales 3 times. The sooner the vote the more posibilities of scaling the curator reward (except the rule of 30 minutes).