Fix maxmoney estimate for acPErc

This commit is contained in:
jl777
2019-03-02 07:45:06 -11:00
parent 76bb0a2360
commit 1d692f4df3

View File

@@ -269,7 +269,7 @@ uint64_t komodo_current_supply(uint32_t nHeight)
return(KOMODO_MAXNVALUE);
if ( ASSETCHAINS_COMMISSION != 0 )
{
uint64_t newval = (cur_money + (cur_money * ASSETCHAINS_COMMISSION));
uint64_t newval = (cur_money + (cur_money * ASSETCHAINS_COMMISSION)/COIN);
if ( KOMODO_BIT63SET(newval) != 0 )
return(KOMODO_MAXNVALUE);
else if ( newval < cur_money ) // check for underflow