Permalink
Browse files

Change inflation percents, rename reward fund define

  • Loading branch information...
On1x committed Sep 25, 2018
1 parent 5aa15e7 commit 5265b50c52b97ed49d4cd36d9e0511e2d04c9ce1
Showing with 5 additions and 4 deletions.
  1. +1 −1 libraries/chain/database.cpp
  2. +4 −3 libraries/protocol/include/graphene/protocol/config.hpp
@@ -2195,7 +2195,7 @@ namespace graphene { namespace chain {
/*ilog( "Inflation status: props.head_block_number=${h1}, inflation_per_year=${h2}, new_supply=${h3}, inflation_per_block=${h4}",
("h1",props.head_block_number)("h2", inflation_per_year)("h3",new_supply)("h4",inflation_per_block)
);*/
auto content_reward = ( inflation_per_block * CHAIN_CONTENT_REWARD_PERCENT ) / CHAIN_100_PERCENT;
auto content_reward = ( inflation_per_block * CHAIN_REWARD_FUND_PERCENT ) / CHAIN_100_PERCENT;
auto vesting_reward = ( inflation_per_block * CHAIN_VESTING_FUND_PERCENT ) / CHAIN_100_PERCENT; /// 15% to vesting fund
auto committee_reward = ( inflation_per_block * CHAIN_COMMITTEE_FUND_PERCENT ) / CHAIN_100_PERCENT;
auto witness_reward = inflation_per_block - content_reward - vesting_reward - committee_reward; /// Remaining 10% to witness pay
@@ -54,10 +54,11 @@
#define CHAIN_1_TENTH_PERCENT (CHAIN_100_PERCENT/1000)

#define CHAIN_FIXED_INFLATION (1000) //10%
#define CHAIN_CONTENT_REWARD_PERCENT (30*CHAIN_1_PERCENT) //30% of inflation
#define CHAIN_VESTING_FUND_PERCENT (10*CHAIN_1_PERCENT) //10% of inflation
#define CHAIN_REWARD_FUND_PERCENT (35*CHAIN_1_PERCENT) //35% of inflation
#define CHAIN_COMMITTEE_FUND_PERCENT (35*CHAIN_1_PERCENT) //35% of inflation

#define CHAIN_REWARD_FUND_CURATOR_PERCENT (5*100/30*CHAIN_1_PERCENT) //5% of inflation from reward fund
#define CHAIN_VESTING_FUND_PERCENT (40*CHAIN_1_PERCENT) //40% of inflation
#define CHAIN_COMMITTEE_FUND_PERCENT (15*CHAIN_1_PERCENT) //15% of inflation

#define CHAIN_BANDWIDTH_AVERAGE_WINDOW_SECONDS (60*60*24*7) ///< 1 week
#define CHAIN_BANDWIDTH_PRECISION 1000000ll ///< 1 million

0 comments on commit 5265b50

Please sign in to comment.