From 20fa48dc94eff7b98f92f2561cd99b9eaa4e8a43 Mon Sep 17 00:00:00 2001 From: XMR Miners Club <71138782+xmrminers@users.noreply.github.com> Date: Sun, 3 Jan 2021 21:39:45 -0500 Subject: [PATCH] Update common.js support for solofee and finders reward --- website_example/js/common.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website_example/js/common.js b/website_example/js/common.js index 73d8ae9..0e6b052 100644 --- a/website_example/js/common.js +++ b/website_example/js/common.js @@ -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));