From 746e94a8f5fc449df03656ec37f621edc995c60e Mon Sep 17 00:00:00 2001 From: QuickMythril Date: Tue, 28 Jan 2025 04:48:44 -0500 Subject: [PATCH] add count of minter admins & signatures needed to ARA board --- assets/js/ARBoard.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/js/ARBoard.js b/assets/js/ARBoard.js index 45f536a..e9c90b0 100644 --- a/assets/js/ARBoard.js +++ b/assets/js/ARBoard.js @@ -28,7 +28,6 @@ const loadAddRemoveAdminPage = async () => {

-

Existing Minter Admins

@@ -231,6 +230,9 @@ const displayExistingMinterAdmins = async () => { // 1) Fetch addresses const admins = await fetchMinterGroupAdmins() minterAdminAddresses = admins.map(m => m.member) + // Compute total admin count and signatures needed (40%, rounded up) + const totalAdmins = admins.length; + const signaturesNeeded = Math.ceil(totalAdmins * 0.40); let rowsHtml = ""; for (const adminAddr of admins) { if (adminAddr.member === nullAddress) { @@ -290,7 +292,11 @@ const displayExistingMinterAdmins = async () => { ` - adminListContainer.innerHTML = tableHtml + adminListContainer.innerHTML = ` +

Existing Minter Admins: ${totalAdmins}

+

Signatures for Group Approval (40%): ${signaturesNeeded}

+ ${tableHtml} + `; } catch (err) { console.error("Error fetching minter admins:", err) adminListContainer.innerHTML =