create account

点赞对Reputation的影响 | How do Votes Affect Reputation by alanzheng

View this thread on: hive.blogpeakd.comecency.com
· @alanzheng ·
$0.78
点赞对Reputation的影响 | How do Votes Affect Reputation
![](https://steemitimages.com/DQmUV27r7taSDmVaNdG7BMSkPRkCmEjhQHqnpdC5n15Te1B/image.png)

点赞对Reputation的影响受下面几个因素的影响:

Voting Power: 是 0 - 10000
Vesting Shares:比如 290,074.866102,计算的时候取290074866102

计算 Reward Shares:

Used Power = ((((Voting Power * Voting Percent) / 10000)) / 200) + 1
Vote Reward Shares = (Used Power * Vesting Shares) / 10000

假设 Voting Power 是 9333, 用100%点赞, Vesting Shares是290074866102, 那么在这次点赞中消耗的 Voting Power是:
Used Power = 9333*10000 ÷ 10000 ÷ 200 + 1 = 47.665
Vote Reward Shares = 47.665 * 290074866102 ÷ 10000 = 1382641849.2752

如果作者还没有 reputation,那么作者的 reputation = Vote Reward Shares >> 6
如果作者已经有 reputation,那么作者的 reputation += Vote Reward Shares >> 6

代码请参考[这里](https://github.com/steemit/steem/blob/master/libraries/plugins/follow/follow_plugin.cpp)
👍  , , , , , , , , , , , , , , , ,
properties (23)
authoralanzheng
permlinkreputation-or-how-do-votes-affect-reputation
categorycn
json_metadata{"tags":["cn","steemdev","steemit","development","programming"],"image":["https://steemitimages.com/DQmUV27r7taSDmVaNdG7BMSkPRkCmEjhQHqnpdC5n15Te1B/image.png"],"links":["https://github.com/steemit/steem/blob/master/libraries/plugins/follow/follow_plugin.cpp"],"app":"steemit/0.1","format":"markdown"}
created2018-01-22 11:44:09
last_update2018-01-22 11:44:09
depth0
children0
last_payout2018-01-29 11:44:09
cashout_time1969-12-31 23:59:59
total_payout_value0.680 HBD
curator_payout_value0.096 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length780
author_reputation2,727,533,211,976
root_title"点赞对Reputation的影响 | How do Votes Affect Reputation"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id31,362,010
net_rshares68,383,611,850
author_curate_reward""
vote details (17)