Skip to content

Commit

Permalink
update DPX-18
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbeny committed May 31, 2024
1 parent 45eb884 commit 3dbd13d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/contracts/src/DaofinPlugin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,6 @@ contract DaofinPlugin is BaseDaofinPlugin {
bytes32 committee = committees[i];
uint256 yesVotes = proposal_.committeeToTallyDetails[committee].yes;
uint256 noVotes = proposal_.committeeToTallyDetails[committee].no;
uint256 abstainVotes = proposal_.committeeToTallyDetails[committee].abstain;

uint256 supportThreshold = getCommitteesToVotingSettings(
proposal_.proposalTypeId,
Expand All @@ -742,7 +741,7 @@ contract DaofinPlugin is BaseDaofinPlugin {
yesVotes >=
_applyRatioCeiled(getTotalNumberOfMembersByCommittee(committee), supportThreshold);
if (!isValid) return false;
if (yesVotes < noVotes || yesVotes < abstainVotes) return false;
if (yesVotes < noVotes) return false;
}
return true;
}
Expand Down

0 comments on commit 3dbd13d

Please sign in to comment.