Test
This commit is contained in:
@@ -47,7 +47,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 * duration) / APR;
|
reward = ((amount * duration) / 365*24*3600) * APR;
|
||||||
fprintf(stderr,"amount %.8f -> duration.%llu reward %.8f\n",(double)amount/COIN,(long long)duration,(double)reward/COIN);
|
fprintf(stderr,"amount %.8f -> duration.%llu reward %.8f\n",(double)amount/COIN,(long long)duration,(double)reward/COIN);
|
||||||
return(reward);
|
return(reward);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user