Update common.js
support for solofee and finders reward
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user