This commit is contained in:
jl777
2016-10-22 10:06:11 -03:00
parent 0016f0db51
commit 97b900d77e
2 changed files with 19 additions and 12 deletions

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) / (((uint64_t)365 * 1000000 * 24 * 60) / minutes);
interest = (nValue * 5000000) / (((uint64_t)365 * 100000000 * 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);