[IMPROVED] Adding pools specific PPS rate
* Show Diff1 Baseline PPS Rate * Use pools set minimum difficulty to display pool based rate
This commit is contained in:
parent
a2472284a8
commit
8f51faf963
@ -142,6 +142,7 @@ if (@$_SESSION['USERDATA']['id']) {
|
||||
|
||||
$aGlobal['userdata']['pps']['unpaidshares'] = $statistics->getUserUnpaidPPSShares($_SESSION['USERDATA']['id'], $setting->getValue('pps_last_share_id'));
|
||||
$aGlobal['ppsvalue'] = number_format(round($pps_reward / (pow(2, $config['target_bits']) * $dDifficulty), 12) ,12);
|
||||
$aGlobal['poolppsvalue'] = $aGlobal['ppsvalue'] * pow(2, $config['difficulty'] - 16);
|
||||
$aGlobal['userdata']['sharedifficulty'] = $statistics->getUserShareDifficulty($_SESSION['USERDATA']['id']);
|
||||
$aGlobal['userdata']['estimates'] = $statistics->getUserEstimates($aGlobal['userdata']['sharerate'], $aGlobal['userdata']['sharedifficulty'], $aGlobal['userdata']['donate_percent'], $aGlobal['userdata']['no_fees'], $aGlobal['ppsvalue']);
|
||||
break;
|
||||
|
||||
@ -14,8 +14,12 @@
|
||||
<td id="b-ppsunpaid">{$GLOBAL.userdata.pps.unpaidshares}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>PPS Value</b></td>
|
||||
<td>{$GLOBAL.ppsvalue}</td>
|
||||
<td><b>Baseline PPS Rate</b></td>
|
||||
<td>{$GLOBAL.ppsvalue} {$GLOBAL.config.currency}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Pools PPS Rate</b></td>
|
||||
<td>{$GLOBAL.poolppsvalue} {$GLOBAL.config.currency}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>PPS Difficulty</b></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user