From a87100de4c605eca69b2e8df2086285dd3fa4be8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 21 Mar 2017 21:55:59 +0200 Subject: [PATCH] Height 250000 update --- src/komodo_interest.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/komodo_interest.h b/src/komodo_interest.h index 0d11992ab..96ba7923e 100644 --- a/src/komodo_interest.h +++ b/src/komodo_interest.h @@ -75,7 +75,7 @@ uint64_t komodo_interest(int32_t txheight,uint64_t nValue,uint32_t nLockTime,uin { if ( minutes > 365 * 24 * 60 ) minutes = 365 * 24 * 60; - if ( txheight >= 275000 ) + if ( txheight >= 250000 ) minutes -= 59; denominator = (((uint64_t)365 * 24 * 60) / minutes); if ( denominator == 0 ) @@ -106,7 +106,7 @@ uint64_t komodo_interest(int32_t txheight,uint64_t nValue,uint32_t nLockTime,uin if ( exception == 0 ) { numerator = (nValue / 20); // assumes 5%! - if ( txheight < 275000 ) + if ( txheight < 250000 ) interest = (numerator / denominator); else interest = (numerator * minutes) / ((uint64_t)365 * 24 * 60); } @@ -119,7 +119,7 @@ uint64_t komodo_interest(int32_t txheight,uint64_t nValue,uint32_t nLockTime,uin else { numerator = (nValue * KOMODO_INTEREST); - if ( txheight < 275000 || 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; }