This commit is contained in:
jl777
2016-10-21 19:09:24 -03:00
parent 8ad9f27fdd
commit 355ca56547
6 changed files with 18 additions and 14 deletions

View File

@@ -278,8 +278,7 @@ uint64_t komodo_interest(uint64_t nValue,uint32_t nLockTime,uint32_t tiptime)
{
minutes = (tiptime - nLockTime) / 60;
days = minutes / (24 * 60);
if ( days > 0 )
interest = (nValue * 5000000) / (365 * 1000000 / days);
interest = (nValue * 5000000) / ((365 * 1000000 * 24 * 60) / minutes);
fprintf(stderr,"komodo_interest %lld %.8f nLockTime.%u tiptime.%u minutes.%d days.%d interest %lld %.8f\n",(long long)nValue,(double)nValue/100000000.,nLockTime,tiptime,minutes,days,(long long)interest,(double)interest/100000000);
}
return(interest * 0);