From 42d0f9c2ee3c519276fafe301b8cb98cd53b0048 Mon Sep 17 00:00:00 2001
From: uncoolzero <107518216+uncoolzero@users.noreply.github.com>
Date: Tue, 4 Jul 2023 16:25:03 -0300
Subject: [PATCH] Adds supermajority display to BIP votes
---
.../components/Governance/Actions/Vote.tsx | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/projects/ui/src/components/Governance/Actions/Vote.tsx b/projects/ui/src/components/Governance/Actions/Vote.tsx
index 21bb44b67f..5a58f28f7f 100644
--- a/projects/ui/src/components/Governance/Actions/Vote.tsx
+++ b/projects/ui/src/components/Governance/Actions/Vote.tsx
@@ -64,6 +64,7 @@ const VoteForm: FC<
/// Proposal specific voting power
votingPower,
tag,
+ type,
},
loading: loadingQuorum,
} = quorum;
@@ -291,6 +292,27 @@ const VoteForm: FC<
)}
)}
+ {quorumPct && totalForQuorum && type === "BIP" && (
+
+
+ Supermajority
+
+ >
+ }
+ >
+ {loadingQuorum ? (
+
+ ) : (
+ <>
+ ~{displayFullBN((totalOutstanding || ZERO_BN).multipliedBy(0.667), 0)}{' '}
+ {isNFT ? 'BEANFT' : 'STALK'} ยท
+ 66.7%
+ >
+ )}
+
+ )}
{proposal.choices.map((choice: string, index: number) => (