From af25fb295758a824ebc32a859ce3b2c18ba0c6d5 Mon Sep 17 00:00:00 2001 From: Harman-singh-waraich Date: Thu, 26 Sep 2024 17:57:44 +0530 Subject: [PATCH] fix(web): execute-rewards-maintenance-button-logic --- .../CaseDetails/MaintenanceButtons/DistributeRewards.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/pages/Cases/CaseDetails/MaintenanceButtons/DistributeRewards.tsx b/web/src/pages/Cases/CaseDetails/MaintenanceButtons/DistributeRewards.tsx index 21a9cad24..f20702276 100644 --- a/web/src/pages/Cases/CaseDetails/MaintenanceButtons/DistributeRewards.tsx +++ b/web/src/pages/Cases/CaseDetails/MaintenanceButtons/DistributeRewards.tsx @@ -52,7 +52,10 @@ const DistributeRewards: React.FC = ({ id, roundIndex, setIs const argsArr: TransactionBatcherConfig = []; for (const round of rounds) { - argsArr.push({ ...baseArgs, args: [BigInt(id), BigInt(round.id.split("-")[1]), BigInt(round.nbVotes)] }); + argsArr.push({ + ...baseArgs, + args: [BigInt(id), BigInt(round.id.split("-")[1]), BigInt(round.nbVotes) * BigInt(2)], + }); } setContractConfigs(argsArr);