Skip to content

Commit

Permalink
chore: implement allow account to create proposal once totalVotingPow…
Browse files Browse the repository at this point in the history
…er is sufficient (#384)
  • Loading branch information
LordCheta authored Nov 20, 2024
1 parent 12571a3 commit ae4a0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/proposals/hooks/useVotingPower.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const useVotingPower = () => {
return {
isLoading: false,
votingPower: formatUnits(balance, decimals),
canCreateProposal: balance >= threshold,
canCreateProposal: totalVotingPower >= threshold,
threshold: formatUnits(threshold, decimals),
totalVotingPower: formatUnits(totalVotingPower, decimals),
}
Expand Down

0 comments on commit ae4a0bf

Please sign in to comment.