From 4820736167f2b03688d4bd622d18c5a0b8acc27b Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 16 Jan 2017 02:53:54 +0200 Subject: [PATCH] test --- src/komodo_interest.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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