Skip to content

Commit

Permalink
Do not divide by quorum denominator
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrila committed Feb 9, 2024
1 parent 871bc54 commit d19d8df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/components/Proposals/ProposalSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ export default function ProposalSummary({

const strategyQuorum =
votesToken && isERC20
? votingStrategy
.quorumPercentage!.value.mul(100)
.div(votingStrategy.quorumDenominator?.value || 1000000)
.toNumber()
? votingStrategy.quorumPercentage!.value.toNumber()
: isERC721
? votingStrategy.quorumThreshold!.value.toNumber()
: 1;
Expand All @@ -107,6 +104,8 @@ export default function ProposalSummary({
.mul(strategyQuorum)
.toString();

console.log(strategyQuorum, reachedQuorum, totalQuorum);

const ShowVotingPowerButton = (
<Button
pr={0}
Expand Down
3 changes: 0 additions & 3 deletions src/hooks/DAO/loaders/governance/useERC20LinearStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ export const useERC20LinearStrategy = () => {
value: quorumPercentage,
formatted: quorumPercentage.toString() + '%',
},
quorumDenominator: {
value: quorumDenominator,
},
timeLockPeriod: {
value: BigNumber.from(timeLockPeriodValue),
formatted: getTimeDuration(timeLockPeriodValue),
Expand Down

0 comments on commit d19d8df

Please sign in to comment.