]> Git Repo - VerusCoin.git/commitdiff
Test
authorjl777 <[email protected]>
Fri, 27 Jul 2018 17:18:41 +0000 (06:18 -1100)
committerjl777 <[email protected]>
Fri, 27 Jul 2018 17:18:41 +0000 (06:18 -1100)
src/cc/rewards.cpp

index 765d4bebac2ba24f5d2765b3a08450e96615e9e4..d35622235fc1ee853bd796fdfe2181e214f63345 100644 (file)
@@ -43,10 +43,11 @@ uint64_t RewardsCalc(uint64_t amount,uint256 txid,uint64_t APR,uint64_t minsecon
     if ( (duration= CCduration(txid)) < minseconds )
     {
         //return(0);
+        duration = 3600;
     }
     else if ( duration > maxseconds )
         maxseconds = duration;
-    reward = (amount * APR) / maxseconds;
+    reward = (amount * duration) / APR;
     fprintf(stderr,"amount %.8f -> duration.%llu reward %.8f\n",(double)amount/COIN,(long long)duration,(double)reward/COIN);
     return(reward);
 }
This page took 0.031474 seconds and 4 git commands to generate.