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 totalFee = parentStats.config.fee;
|
||||||
|
var soloFee = parentStats.config.soloFee;
|
||||||
if (Object.keys(parentStats.config.donation)
|
if (Object.keys(parentStats.config.donation)
|
||||||
.length) {
|
.length) {
|
||||||
var totalDonation = 0;
|
var totalDonation = 0;
|
||||||
@@ -2773,9 +2774,11 @@ function home_InitTemplate (parentStats, siblingStats) {
|
|||||||
totalDonation += parentStats.config.donation[i];
|
totalDonation += parentStats.config.donation[i];
|
||||||
}
|
}
|
||||||
totalFee += totalDonation;
|
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('paymentsInterval', getReadableTime(parentStats.config.paymentsInterval));
|
||||||
updateText('paymentsMinimum', getReadableCoin(parentStats, parentStats.config.minPaymentThreshold));
|
updateText('paymentsMinimum', getReadableCoin(parentStats, parentStats.config.minPaymentThreshold));
|
||||||
|
|||||||
Reference in New Issue
Block a user