Merge pull request #532 from TheSerapher/issue-529
Fixing PPLNS target percentages
This commit is contained in:
commit
59534d1c02
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user