From c95550ebe57650b5cee3144e06875ef4b3f9a58b Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 26 Mar 2017 18:54:52 +0300 Subject: [PATCH] Test --- src/komodo_interest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_interest.h b/src/komodo_interest.h index e0c9a9a58..40e0ef2be 100644 --- a/src/komodo_interest.h +++ b/src/komodo_interest.h @@ -128,7 +128,7 @@ uint64_t komodo_interest(int32_t txheight,uint64_t nValue,uint32_t nLockTime,uin numerator = (nValue * KOMODO_INTEREST); if ( txheight < 250000 && tiptime < activation ) { - if ( numerator * minutes < 365 * 24 * 60 ) + if ( txheight >= 250000 && numerator * minutes < 365 * 24 * 60 ) interest = (numerator / denominator) / COIN; else interest = ((numerator * minutes) / ((uint64_t)365 * 24 * 60)) / COIN; }