Let us go back to simpler times when things worked

This commit is contained in:
Jonathan "Duke" Leto
2019-04-13 03:02:22 -07:00
parent 7e8d7d5539
commit 7bba0ef046
3 changed files with 96 additions and 41 deletions

View File

@@ -1221,8 +1221,9 @@ uint64_t komodo_commission(const CBlock *pblock,int32_t height)
fprintf(stderr,"ORIG ht.%d nSubsidy %.8f prod %llu\n",height,(double)nSubsidy/COIN,(long long)(nSubsidy * ASSETCHAINS_COMMISSION));
if ((strcmp(ASSETCHAINS_SYMBOL, "HUSH") != 0) || (strcmp(ASSETCHAINS_SYMBOL, "HUSHT5") != 0)) {
// HUSH supply curve cannot be exactly represented via KMD AC CLI args, so we do it manually
// 10% of 12.5 is 1.25 but to tell the AC params, I need to say "11% of 11.25" is 1.25
// HUSH supply curve cannot be exactly represented via KMD AC CLI args, so we do it ourselves.
// You specify the BR, and the FR % gets added so 10% of 12.5 is 1.25
// but to tell the AC params, I need to say "11% of 11.25" is 1.25
// 11% ie. 1/9th cannot be exactly represented and so the FR has tiny amounts of error unless done manually
// Transition period of 128 blocks has BR=FR=0
if (height < TRANSITION) {
@@ -1242,10 +1243,8 @@ uint64_t komodo_commission(const CBlock *pblock,int32_t height)
} else if (height < HALVING1+6*INTERVAL) { // Block 5380000
// Block reward will go to zero between 7th+8th halvings
commission = starting_commission / 64;
} else if (height < HALVING1+7*INTERVAL) { // Block 6220000
commission = starting_commission / 128;
} else if (height < HALVING1+8*INTERVAL) { // Block 7060000
commission = starting_commission / 256;
} else if (height < HALVING1+7*INTERVAL) {
commission = starting_commission / 128; // Block 6220000
}
// enforce the end of FR when BR ends