diff --git a/cronjobs/pplns_payout.php b/cronjobs/pplns_payout.php index 66d714d3..d6d00c9d 100755 --- a/cronjobs/pplns_payout.php +++ b/cronjobs/pplns_payout.php @@ -124,7 +124,7 @@ foreach ($aAllBlocks as $iIndex => $aBlock) { // Loop through all accounts that have found shares for this round foreach ($aAccountShares as $key => $aData) { // Payout based on PPLNS target shares, proportional payout for all users - $aData['percentage'] = number_format(round(( 100 / $pplns_target) * $aData['valid'], 8), 8); + $aData['percentage'] = number_format(round(( 100 / $iRoundShares) * $aData['valid'], 8), 8); $aData['payout'] = number_format(round(( $aData['percentage'] / 100 ) * $dReward, 8), 8); // Defaults $aData['fee' ] = 0;