Update common.js

support for solofee and finders reward
This commit is contained in:
XMR Miners Club
2021-01-03 21:39:45 -05:00
committed by GitHub
parent bc4f5eb7ae
commit 20fa48dc94

View File

@@ -2766,6 +2766,7 @@ function home_InitTemplate (parentStats, siblingStats) {
var totalFee = parentStats.config.fee;
var soloFee = parentStats.config.soloFee;
if (Object.keys(parentStats.config.donation)
.length) {
var totalDonation = 0;
@@ -2773,9 +2774,11 @@ function home_InitTemplate (parentStats, siblingStats) {
totalDonation += parentStats.config.donation[i];
}
totalFee += totalDonation;
soloFee += totalDonation;
}
updateText('poolFee', (totalFee > 0 && totalFee != 100 ? floatToString(totalFee) : (totalFee == 100 ? '100' : '0')) + '%');
updateText('poolFee', (totalFee > 0 && totalFee != 100 ? floatToString(totalFee) : (totalFee == 100 ? '100' : '0')) + '%/' + soloFee + '%');
updateText('finderReward', parentStats.config.finderReward + '%');
updateText('paymentsInterval', getReadableTime(parentStats.config.paymentsInterval));
updateText('paymentsMinimum', getReadableCoin(parentStats, parentStats.config.minPaymentThreshold));