From 4ffcef694dced8f13dca928031dcd0e6e36309d6 Mon Sep 17 00:00:00 2001 From: Amir Pasha Motamed Date: Thu, 21 Aug 2025 02:46:37 +0330 Subject: [PATCH] Update producer payment calculation in ValidatorDataTable component --- src/components/validators/ValidatorDataTable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/validators/ValidatorDataTable.vue b/src/components/validators/ValidatorDataTable.vue index 13c84518..13258189 100644 --- a/src/components/validators/ValidatorDataTable.vue +++ b/src/components/validators/ValidatorDataTable.vue @@ -175,7 +175,7 @@ export default defineComponent({
{{ (bp.total_votes / 10000).toLocaleString(undefined, {minimumFractionDigits: 4,maximumFractionDigits: 4,}) }}
-
{{ ((producerRows.indexOf(bp) + 1) < 22 ? producerPay : (producerRows.indexOf(bp) + 1) < 43 ? producerPay / 2 : 0 ).toFixed(0) + ` ${symbol}` }}
+
{{ ((producerRows.indexOf(bp) + 1) < 22 ? (producerPay*((120-2*producerRows.indexOf(bp))/100)) : (producerRows.indexOf(bp) + 1) < 43 ? ((producerPay/2)*((162-2*producerRows.indexOf(bp))/100)) : 0 ).toFixed(0) + ` ${symbol}` }}