Skip to content

[Contract] — Governance Proposal Quorum and Timelock #1331

Description

@Olowodarey

Labels: contract, enhancement, governance

Problem

Governance proposals can execute as soon as they pass, with no minimum participation requirement and no delay for the community to react. This enables low-turnout capture and surprise parameter changes.

Requirements

  1. Add a configurable quorum (minimum participating weight) required for a proposal to pass.
  2. Add a timelock delay between a proposal passing and becoming executable.
  3. Reject execution before the timelock elapses or if quorum was not met.
  4. Emit events for queued, executable, and executed states.

Acceptance Criteria

  • Proposals below quorum cannot pass regardless of yes/no ratio.
  • Execution reverts before the timelock elapses.
  • Quorum and timelock are governance-configurable and validated.
  • Tests cover quorum failure, timelock gating, and successful execution.

Files

contracts/open-market/src/governance.rs, contracts/open-market/src/config.rs, contracts/open-market/src/storage_types.rs, contracts/open-market/src/errors.rs

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions