testing-20250128 #7

Closed
Ghost wants to merge 13 commits from (deleted):testing-20250128 into main
Showing only changes of commit 746e94a8f5 - Show all commits

View File

@ -28,7 +28,6 @@ const loadAddRemoveAdminPage = async () => {
</p>
<div id="admin-table-section" class="admin-table-section" style="margin-top: 2em;">
<h3 style="color:rgb(212, 212, 212);">Existing Minter Admins</h3>
<div id="admin-list-container" style="margin: 1em auto; max-width: 600px;"></div>
</div>
@ -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 () => {
</tbody>
</table>
`
adminListContainer.innerHTML = tableHtml
adminListContainer.innerHTML = `
<h3 style="color:rgb(212, 212, 212);">Existing Minter Admins: ${totalAdmins}</h3>
<h4 style="color:rgb(212, 212, 212);">Signatures for Group Approval (40%): ${signaturesNeeded}</h4>
${tableHtml}
`;
} catch (err) {
console.error("Error fetching minter admins:", err)
adminListContainer.innerHTML =