From 9b82df63592bcb6a1c7271fa1b44cd8519e58117 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 16 Mar 2017 20:26:06 +0200 Subject: [PATCH] Test --- src/komodo_interest.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/komodo_interest.h b/src/komodo_interest.h index 3b9540a1c..2aa745070 100644 --- a/src/komodo_interest.h +++ b/src/komodo_interest.h @@ -104,9 +104,9 @@ uint64_t komodo_interest(int32_t txheight,uint64_t nValue,uint32_t nLockTime,uin if ( exception == 0 ) { numerator = (nValue / 20); // assumes 5%! - //if ( txheight < 300000 ) + if ( txheight < 300000 ) interest = (numerator / denominator); - //else interest = (numerator * minutes) / ((uint64_t)365 * 24 * 60); + else interest = (numerator * minutes) / ((uint64_t)365 * 24 * 60); } else { @@ -117,9 +117,9 @@ uint64_t komodo_interest(int32_t txheight,uint64_t nValue,uint32_t nLockTime,uin else { numerator = (nValue * KOMODO_INTEREST); - //if ( txheight < 300000 || numerator * minutes < 365 * 24 * 60 ) + if ( txheight < 300000 || numerator * minutes < 365 * 24 * 60 ) interest = (numerator / denominator) / COIN; - //else interest = ((numerator * minutes) / ((uint64_t)365 * 24 * 60)) / COIN; + else interest = ((numerator * minutes) / ((uint64_t)365 * 24 * 60)) / COIN; } //fprintf(stderr,"komodo_interest %lld %.8f nLockTime.%u tiptime.%u minutes.%d interest %lld %.8f (%llu / %llu)\n",(long long)nValue,(double)nValue/COIN,nLockTime,tiptime,minutes,(long long)interest,(double)interest/COIN,(long long)numerator,(long long)denominator); }