Original repo is gone, so I use last (first) available:
https://github.com/RazorLove/doubloons/blob/master/src/main.hstatic const int64 MAX_MONEY = 8000000 * COIN;
MAX_MONEY tells how many coins can be send in single transaction, it is not limit of coins generated.
Coins generation limit is enforced in subsidy function:
https://github.com/RazorLove/doubloons/blob/master/src/main.cppint64 static GetBlockValue(int nHeight, int64 nFees)
{
int64 nSubsidy = 6.77 * COIN;
if(nHeight > 10519200) // no block reward after 5 years
nSubsidy = 0;
return nSubsidy + nFees;
}
static int64 nTargetTimespan = 0.5 * 24 * 60 * 60; // 43,200 seconds (12 hours)
static int64 nTargetSpacing = 60; // 60 seconds (1 minute)
static int64 nInterval = nTargetTimespan / nTargetSpacing; // 720 blocks
For 60s block, mining will continue for 20 years (10519200/60/24*365=~20) and it will be 71 214 984 total DBL mined.
I`m not sure, where error starts.
For 5 years of mining (about 2 628 000 blocks) total amount of DBL mined would be 17 791 560.
If we want to mine top 8 000 000 DBL we have to cut mining on block 1 181 683 and it take about 2.2 years to mine all coins. Current block number is 964 993, so it will be around 150 days of mining left if we do it.