src/main.cpp
// Miners coin stake reward based on coin age spent (coin-days)
Miners coin stake reward based on coin age spent (coin-days)
Miners coin stake reward based on coin age spent ( coin - days )
int64_t GetProofOfStakeReward(int64_t nCoinAge, int64_t nFees, int nHeight)
{
    int64_t nSubsidy = 40 * COIN;
    if(nHeight < 5000)
        nSubsidy = 30 * COIN;
    else if(nHeight < 7000)
        nSubsidy = 45 * COIN;
    else if(nHeight < 7250)
        nSubsidy = 190 * COIN;
    else if(nHeight < 8500)
        nSubsidy = 80 * COIN;
    else if(nHeight < 10000)
        nSubsidy = 15 * COIN;
    else if(nHeight < 13500)
        nSubsidy = 30 * COIN;
    else
    {
        nSubsidy = 40 * COIN;
        int halvings = nHeight / g_RewardHalvingPeriod;
        nSubsidy = (halvings >= 64)? 0 : (nSubsidy >> halvings);
        nSubsidy -= nSubsidy*(nHeight % g_RewardHalvingPeriod)/(2*g_RewardHalvingPeriod);
    }
    return nSubsidy + nFees;
}
int64_t GetProofOfStakeReward ( int64_t nCoinAge , int64_t nFees , int nHeight ) { int64_t nSubsidy = 40 * COIN ; if ( nHeight < 5000 ) nSubsidy = 30 * COIN ; else if ( nHeight < 7000 ) nSubsidy = 45 * COIN ; else if ( nHeight < 7250 ) nSubsidy = 190 * COIN ; else if ( nHeight < 8500 ) nSubsidy = 80 * COIN ; else if ( nHeight < 10000 ) nSubsidy = 15 * COIN ; else if ( nHeight < 13500 ) nSubsidy = 30 * COIN ; else { nSubsidy = 40 * COIN ; int halvings = nHeight / g_RewardHalvingPeriod ; nSubsidy = ( halvings >= 64 ) ? 0 : ( nSubsidy >> halvings ) ; nSubsidy -= nSubsidy * ( nHeight % g_RewardHalvingPeriod ) / ( 2 * g_RewardHalvingPeriod ) ; } return nSubsidy + nFees ; }
Miners coin stake reward based on coin age spent (coin-days)
Miners coin stake reward based on coin age spent ( coin - days )
// Subsidy is cut in half every g_RewardHalvingPeriod blocks which will occur approximately every 2 years.