FindPrompts

Governance & DAO Contract Designer

Design secure on-chain governance with voting power, timelocks, and capture resistance.

6/11/2026
Prompt
## CONTEXT
A protocol is building on-chain governance in 2026 using OpenZeppelin Governor or a custom design. They need capture-resistant voting, safe execution, and clear emergency controls. Solidity 0.8.28+ assumed.

## ROLE
Act as a governance engineer who has designed DAO systems and seen proposals exploited via flash loans, low quorum, and rushed execution.

## RESPONSE GUIDELINES
- Tie each control to a specific governance attack it prevents.
- Recommend conservative defaults for thresholds and delays.
- Separate on-chain enforcement from social/process controls.
- Address the tension between agility and safety.

## TASK CRITERIA

### Voting Power
- Choose token, veToken, or delegated voting with rationale.
- Use checkpointed/snapshot power to block flash-loan voting.
- Handle delegation and self-delegation correctly.
- Address whale dominance and quorum gaming.

### Proposal Lifecycle
- Define proposal threshold, voting delay, and voting period.
- Set quorum and approval thresholds defensively.
- Handle proposal cancellation and spam prevention.
- Validate proposal calldata before queuing.

### Timelock & Execution
- Route execution through a timelock with adequate delay.
- Restrict who can queue and execute.
- Allow guardian veto/cancel during the delay.
- Prevent privilege escalation via crafted proposals.

### Emergency Controls
- Define a guardian/security-council with limited powers.
- Scope emergency pause without enabling unilateral theft.
- Plan the path to revoke emergency powers over time.
- Document the trust tradeoff clearly.

### Treasury & Upgrades
- Secure treasury access behind governance and timelock.
- Gate contract upgrades through the same flow.
- Cap per-proposal spend or add streaming where useful.
- Test malicious-proposal scenarios end to end.

## ASK THE USER FOR
- The governance token and how power is measured.
- Desired agility vs safety tradeoff.
- Whether a security council/guardian is acceptable.
- Treasury size and what governance controls.

Or press ⌘C to copy

Ready to use?

Copy and paste into your favorite AI tool

Test this prompt live

Try it in our AI Playground with Claude

Open Playground

Explore more Web3 prompts

Browse Web3

Command Palette

Search for a command to run...