Skip to content

Governor: execute proposalΒ #118

@bitfalt

Description

@bitfalt

πŸ“‹ Description

Close a proposal and execute its calldata once a simple majority is reached.

βœ… Acceptance Criteria

  • Entrypoint execute(proposal_id: u256)
  • Revert if voting period not ended
  • Revert if for_votes <= against_votes
  • Emit ProposalExecuted(proposal_id)
  • Execution is immediate (no timelock)

πŸ§ͺ Testing

  • Simulate 51 % majority β†’ execution succeeds
  • 50 % / 50 % β†’ execution reverts
  • 49 % / 51 % β†’ execution reverts

Metadata

Metadata

Assignees

Labels

onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weeksimple-dao

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions