This commit is contained in:
jl777
2018-07-27 06:34:51 -11:00
parent 385a7aa2ce
commit 2027491b6f

View File

@@ -48,7 +48,7 @@ uint64_t RewardsCalc(uint64_t amount,uint256 txid,uint64_t APR,uint64_t minsecon
else if ( duration > maxseconds )
maxseconds = duration;
reward = (((amount * APR) / COIN) * duration) / 365*24*3600;
fprintf(stderr,"amount %.8f %.8f %.8f -> duration.%llu reward %.8f\n",(double)amount/COIN,((double)amount * APR)/COIN,(long long)(((amount * APR) / COIN) * duration) / 365*24*3600,(long long)duration,(double)reward/COIN);
fprintf(stderr,"amount %.8f %.8f %llu -> duration.%llu reward %.8f\n",(double)amount/COIN,((double)amount * APR)/COIN,(long long)(((amount * APR) / COIN) * duration) / 365*24*3600,(long long)duration,(double)reward/COIN);
return(reward);
}