Split commission calc into 2 divs

This commit is contained in:
jl777
2019-01-12 09:38:33 -11:00
parent 78b7341aa5
commit 513c19d096

View File

@@ -1167,7 +1167,8 @@ uint64_t komodo_commission(const CBlock *pblock,int32_t height)
total += pblock->vtx[i].vout[j].nValue;
}
}
commission = ((total * ASSETCHAINS_COMMISSION) / COIN);
commission = ((total / 10000) * ASSETCHAINS_COMMISSION) / 10000);
//commission = ((total * ASSETCHAINS_COMMISSION) / COIN);
}
if ( commission < 10000 )
commission = 0;