Skip to content

Commit

Permalink
updated quorum as per contract (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 authored Apr 12, 2024
1 parent 54f357f commit 4302295
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions apps/astraplusplus/widget/DAO/Proposals/Card/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,16 +327,13 @@ const expensiveWork = () => {
}

if (isVotingBodyDao) {
if (
my_proposal.typeName === "Dissolve" ||
my_proposal.typeName === "Text Super"
) {
totalVotesNeeded = daoConfig?.super_consent?.quorum;
} else if (my_proposal.typeName === "Pre Vote") {
totalVotesNeeded = daoConfig?.pre_vote_support;
} else {
totalVotesNeeded = daoConfig?.simple_consent?.quorum;
const votesConfig = Near.view(daoId, "get_proposal_consent", {
id: proposal.id
});
if (votesConfig === null) {
return;
}
totalVotesNeeded = votesConfig.quorum;
}

let totalVotes = {
Expand Down

0 comments on commit 4302295

Please sign in to comment.