Darwin-Coin / darwin-token-contracts

Darwin Protocol Smart Contracts
https://darwinprotocol.io
0 stars 0 forks source link

DarwinCommunity: can execute a proposal irrelevent of if there are more for votes #26

Closed kingofclubstroyDev closed 1 year ago

kingofclubstroyDev commented 1 year ago

if ( proposal.forVotes != proposal.againstVotes || (proposal.forVotes == proposal.againstVotes && randomBoolean()) ) { for (uint256 i = 0; i < proposal.targets.length; i++) { executeTransaction( proposal.id, proposal.targets[i], proposal.values[i], proposal.signatures[i], proposal.calldatas[i] ); } }

kingofclubstroyDev commented 1 year ago

nvm