From 3dbd13d68f1852382939c4c09a58dd59ef146cc7 Mon Sep 17 00:00:00 2001 From: 0xbeny Date: Fri, 31 May 2024 11:14:23 +0400 Subject: [PATCH] update DPX-18 --- packages/contracts/src/DaofinPlugin.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/contracts/src/DaofinPlugin.sol b/packages/contracts/src/DaofinPlugin.sol index f96cdfe..776b974 100644 --- a/packages/contracts/src/DaofinPlugin.sol +++ b/packages/contracts/src/DaofinPlugin.sol @@ -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, @@ -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; }