@@ -2319,46 +2319,44 @@ namespace golos {
2319
2319
}
2320
2320
}
2321
2321
2322
- /* *
2323
- * Overall the network has an inflation rate of 102% of virtual steem per year
2324
- * 90% of inflation is directed to vesting shares
2325
- * 10% of inflation is directed to subjective proof of work voting
2326
- * 1% of inflation is directed to liquidity providers
2327
- * 1% of inflation is directed to block producers
2328
- *
2329
- * This method pays out vesting and reward shares every block, and liquidity shares once per day.
2330
- * This method does not pay out witnesses.
2331
- */
2322
+ /* *
2323
+ * At a start overall the network has an inflation rate of 15.15% of virtual golos per year.
2324
+ * Each year the inflation rate is reduced by 0.42% and stops at 0.95% of virtual golos per year in 33 years.
2325
+ * 66.67% of inflation is directed to content reward pool
2326
+ * 26.67% of inflation is directed to vesting fund
2327
+ * 6.66% of inflation is directed to witness pay
2328
+ *
2329
+ * This method pays out vesting, reward shares and witnesses every block.
2330
+ */
2332
2331
void database::process_funds () {
2333
2332
const auto &props = get_dynamic_global_properties ();
2334
2333
const auto &wso = get_witness_schedule_object ();
2335
2334
2336
2335
if (has_hardfork (STEEMIT_HARDFORK_0_16__551)) {
2337
2336
/* *
2338
- * At block 7,000,000 have a 9.5% instantaneous inflation rate, decreasing to 0.95% at a rate of 0.01%
2339
- * every 250k blocks. This narrowing will take approximately 20.5 years and will complete on block 220,750,000
2340
- */
2337
+ * Inflation rate starts from 15,15% and reduced to 0.95% at a rate of 0.01% every 250k blocks.
2338
+ * At block 178,704,000 (16 years) have a 8.00% instantaneous inflation rate. This narrowing will take
2339
+ * approximately 33 years and will complete on block 357,408,000.
2340
+ */
2341
2341
int64_t start_inflation_rate = int64_t (STEEMIT_INFLATION_RATE_START_PERCENT);
2342
- int64_t inflation_rate_adjustment = int64_t (
2343
- head_block_num () / STEEMIT_INFLATION_NARROWING_PERIOD);
2342
+ int64_t inflation_rate_adjustment = int64_t (head_block_num () / STEEMIT_INFLATION_NARROWING_PERIOD);
2344
2343
int64_t inflation_rate_floor = int64_t (STEEMIT_INFLATION_RATE_STOP_PERCENT);
2345
2344
2346
2345
// below subtraction cannot underflow int64_t because inflation_rate_adjustment is <2^32
2347
- int64_t current_inflation_rate = std::max (start_inflation_rate -
2348
- inflation_rate_adjustment, inflation_rate_floor);
2346
+ int64_t current_inflation_rate =
2347
+ std::max (start_inflation_rate - inflation_rate_adjustment,
2348
+ inflation_rate_floor);
2349
2349
2350
2350
auto new_steem =
2351
2351
(props.virtual_supply .amount * current_inflation_rate) /
2352
- (int64_t (STEEMIT_100_PERCENT) *
2353
- int64_t (STEEMIT_BLOCKS_PER_YEAR));
2352
+ (int64_t (STEEMIT_100_PERCENT) * int64_t (STEEMIT_BLOCKS_PER_YEAR));
2354
2353
auto content_reward =
2355
2354
(new_steem * STEEMIT_CONTENT_REWARD_PERCENT) /
2356
- STEEMIT_100_PERCENT; // / 75 % to content creator
2355
+ STEEMIT_100_PERCENT; // / 66.67 % to content creator
2357
2356
auto vesting_reward =
2358
2357
(new_steem * STEEMIT_VESTING_FUND_PERCENT) /
2359
- STEEMIT_100_PERCENT; // / 15% to vesting fund
2360
- auto witness_reward = new_steem - content_reward -
2361
- vesting_reward; // / Remaining 10% to witness pay
2358
+ STEEMIT_100_PERCENT; // / 26.67% to vesting fund
2359
+ auto witness_reward = new_steem - content_reward - vesting_reward; // / Remaining 6.66% to witness pay
2362
2360
2363
2361
const auto &cwit = get_witness (props.current_witness );
2364
2362
witness_reward *= STEEMIT_MAX_WITNESSES;
@@ -2369,8 +2367,9 @@ namespace golos {
2369
2367
witness_reward *= wso.miner_weight ;
2370
2368
} else if (cwit.schedule == witness_object::top19) {
2371
2369
witness_reward *= wso.top19_weight ;
2372
- } else
2370
+ } else {
2373
2371
wlog (" Encountered unknown witness type for witness: ${w}" , (" w" , cwit.owner ));
2372
+ }
2374
2373
2375
2374
witness_reward /= wso.witness_pay_normalization_factor ;
2376
2375
@@ -2388,8 +2387,7 @@ namespace golos {
2388
2387
auto content_reward = get_content_reward ();
2389
2388
auto curate_reward = get_curation_reward ();
2390
2389
auto witness_pay = get_producer_reward ();
2391
- auto vesting_reward =
2392
- content_reward + curate_reward + witness_pay;
2390
+ auto vesting_reward = content_reward + curate_reward + witness_pay;
2393
2391
2394
2392
content_reward = content_reward + curate_reward;
2395
2393
@@ -2402,10 +2400,8 @@ namespace golos {
2402
2400
modify (props, [&](dynamic_global_property_object &p) {
2403
2401
p.total_vesting_fund_steem += vesting_reward;
2404
2402
p.total_reward_fund_steem += content_reward;
2405
- p.current_supply +=
2406
- content_reward + witness_pay + vesting_reward;
2407
- p.virtual_supply +=
2408
- content_reward + witness_pay + vesting_reward;
2403
+ p.current_supply += content_reward + witness_pay + vesting_reward;
2404
+ p.virtual_supply += content_reward + witness_pay + vesting_reward;
2409
2405
});
2410
2406
}
2411
2407
}
0 commit comments