diff --git a/src/komodo_interest.h b/src/komodo_interest.h index 0f0a9ceb2..544fcd8ae 100644 --- a/src/komodo_interest.h +++ b/src/komodo_interest.h @@ -75,9 +75,9 @@ uint64_t komodo_interest(int32_t txheight,uint64_t nValue,uint32_t nLockTime,uin denominator = (((uint64_t)365 * 24 * 60) / minutes); if ( denominator == 0 ) denominator = 1; // max KOMODO_INTEREST per transfer, do it at least annually! - if ( nValue > 25000*COIN ) + if ( nValue > 25000LL*COIN ) { - numerator = (nValue * (KOMODO_INTEREST / COIN)); + numerator = (nValue / 20); // assumes 5%! interest = (numerator / denominator); } else