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.

Voting power

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:

1

where 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 Vp:

2

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 wp is:

3

Finally, the voting power used pu is a small part of this value, and it is calculated using the following formula:

4

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:

5

R-shares

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.

6

where 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.

Total payout

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:

7

where RS is the total rshares accumulated by the votes, rb is the reward_balance, and 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:

8

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, total_vesting_shares and total_vesting_fund_steem:

9

where Vs are the vesting shares of the curator, SP is the steem power, TVs is the total_vesting_shares, and TVfs is the total_vesting_fund_steem.

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:

10

where 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:

11

where TVs is the total_vesting_shares, TVfs is the total_vesting_fund_steem, rb is the reward_balance, 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:

12

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

13

where

14

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:

15

where 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:

  1. After a week the post does not get more votes and stays the same. PT = P1
  2. After a week the payout scales n times, that is PT = n * P1.

In the first case, the curator payout will be:

16

And in the second case, the curator payout will be:

17

Then

18

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).

That's it, I hope you liked it. For the next post expect an analysis of how to optimize the vote.

jga

H2
H3
H4
3 columns
2 columns
1 column
33 Comments