Test
This commit is contained in:
@@ -48,7 +48,7 @@ uint64_t RewardsCalc(uint64_t amount,uint256 txid,uint64_t APR,uint64_t minsecon
|
|||||||
else if ( duration > maxseconds )
|
else if ( duration > maxseconds )
|
||||||
maxseconds = duration;
|
maxseconds = duration;
|
||||||
reward = (((amount * APR) / COIN) * duration) / 365*24*3600;
|
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);
|
return(reward);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user