Skip to content

Commit

Permalink
Constant interest of 12 grc pre block.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbrod committed Sep 13, 2017
1 parent e986d23 commit 0d1a7d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,13 @@ int64_t GetProofOfStakeReward(int64_t nCoinAge, int64_t nFees, std::string cpid,
{
// Research Age Subsidy - PROD
int64_t nBoinc = ComputeResearchAccrual(nTime, cpid, operation, pindexLast, VerifyingBlock, VerificationPhase, dAccrualAge, dMagnitudeUnit, AvgMagnitude);
int64_t nInterest = nCoinAge * GetCoinYearReward(nTime) * 33 / (365 * 33 + 8);

// Interest
int64_t nInterest;
if (pindexLast->nVersion>=9)
nInterest= 12 * COIN;
else
nInterest= nCoinAge * GetCoinYearReward(nTime) * 33 / (365 * 33 + 8);

// TestNet: For any subsidy < 30 day duration, ensure 100% that we have a start magnitude and an end magnitude, otherwise make subsidy 0 : PASS
// TestNet: For any subsidy > 30 day duration, ensure 100% that we have a midpoint magnitude in Every Period, otherwise, make subsidy 0 : In Test as of 09-06-2015
Expand Down

0 comments on commit 0d1a7d8

Please sign in to comment.