Skip to content

Commit

Permalink
Switch to const interest
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonenko committed Nov 3, 2014
1 parent dad8256 commit 9da05b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Expand Up @@ -1154,12 +1154,12 @@ int64_t GetProofOfStakeInterestV3(int nHeight)
double weight = GetPoSKernelPS(nHeight-1);

uint64_t rate = MIN_COIN_YEAR_REWARD;
if (weight > 16384)
/*if (weight > 16384)
{
rate = std::max(MIN_COIN_YEAR_REWARD,
std::min(static_cast<int64_t>(MIN_COIN_YEAR_REWARD * log(weight / 16384.0)),
MAX_COIN_YEAR_REWARD));
}
}*/
return rate;
}

Expand Down
2 changes: 1 addition & 1 deletion src/wallet.cpp
Expand Up @@ -1739,7 +1739,7 @@ bool CWallet::CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int
if (nReward <= 0)
return false;

nCredit += nReward*0.95;
nCredit += nReward;
}

// Set output amount
Expand Down

0 comments on commit 9da05b8

Please sign in to comment.