Test
This commit is contained in:
@@ -41,7 +41,9 @@ uint64_t RewardsCalc(uint64_t amount,uint256 txid,uint64_t APR,uint64_t minsecon
|
|||||||
{
|
{
|
||||||
uint64_t duration,reward = 0;
|
uint64_t duration,reward = 0;
|
||||||
if ( (duration= CCduration(txid)) < minseconds )
|
if ( (duration= CCduration(txid)) < minseconds )
|
||||||
return(0);
|
{
|
||||||
|
//return(0);
|
||||||
|
}
|
||||||
else if ( duration > maxseconds )
|
else if ( duration > maxseconds )
|
||||||
maxseconds = duration;
|
maxseconds = duration;
|
||||||
reward = (amount * APR) / maxseconds;
|
reward = (amount * APR) / maxseconds;
|
||||||
|
|||||||
Reference in New Issue
Block a user