This commit is contained in:
jl777
2016-10-21 19:15:43 -03:00
parent 355ca56547
commit 0016f0db51

View File

@@ -278,7 +278,7 @@ uint64_t komodo_interest(uint64_t nValue,uint32_t nLockTime,uint32_t tiptime)
{
minutes = (tiptime - nLockTime) / 60;
days = minutes / (24 * 60);
interest = (nValue * 5000000) / ((365 * 1000000 * 24 * 60) / minutes);
interest = (nValue * 5000000) / (((uint64_t)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);