This commit is contained in:
jl777
2018-07-27 06:54:20 -11:00
parent 2e2244a2aa
commit 21281e14aa

View File

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