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
- Add a configurable quorum (minimum participating weight) required for a proposal to pass.
- Add a timelock delay between a proposal passing and becoming executable.
- Reject execution before the timelock elapses or if quorum was not met.
- 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
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
Acceptance Criteria
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