From 1ce44fb757cd0b6bf000995f902d205b3975538b Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 26 Mar 2017 19:01:39 +0300 Subject: [PATCH 1/2] 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 40e0ef2be..11bbd55d5 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 ( txheight >= 250000 && 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; } From ddf7c583aa0a417fb30e39bc9d8cc788222cd32d Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 26 Mar 2017 19:03:11 +0300 Subject: [PATCH 2/2] 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 11bbd55d5..8fb1cb5ac 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 ( txheight < 250000 && 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; }