# Agora App
Source: https://docs.agora.xyz/agora-app-lander
A Modern, Open Source App for DAO Governance
The Agora Governor client, also known as Agora App, is a robust and intuitive governance interface designed to streamline DAO operations and empower communities. Built on a high-performance **Next.js framework** and released under the permissive **MIT license**, the client delivers a seamless, customizable experience for all your governance needs.
[Explore the code](https://github.com/voteagora/agora-next)
### Core features
* **Proposal Management:**
* Effortlessly build proposals using our intuitive proposal creation and sponsor flow.
* Queue and execute proposals with just a few clicks.
* Update and manage proposal types directly from the interface, ensuring governance configurations stay aligned with your DAO's evolving needs.
* Review & verify on and off chain transactions using advanced and context-aware simulations.
* **Delegate and Voting Tools:**
* Delegate and undelegate voting power with ease.
* View and manage active delegations, including sorting and filtering options.
* Create a delegate statement to showcase your vision and contributions as a delegate.
* See all delegates and voters, with advanced filtering and sorting for transparency.
* **Voting and Participation:**
* Cast votes on proposals with confidence.
* View detailed voting results, including who voted, who abstained, and their voting weights.
* Understand participation trends and identify active contributors in your community.
* **DAO Insights:**
* Display key metrics and essential DAO information prominently, helping members stay informed.
* Visualize voting trends, delegation statistics, and other critical governance data.
* **Customizability:**
* Tailor the interface to your DAO's unique branding with theming options.
* Set up your own theme for a personalized and brand aware experience.
* Dark mode
* Custom CSS
# Transaction Simulation & Verification
Source: https://docs.agora.xyz/agora-app-tx-verification
Deep simulation of DAO proposals using full governor and timelock context, with Tenderly support.
# Transaction Simulation & Verification
When a proposal is submitted on-chain, it's critical to ensure that what’s being executed is safe, transparent, and does exactly what the proposer intends. That’s where **Transaction Simulation & Verification** comes in.
This feature simulates the entire proposal execution **before it's ever executed**—using the **exact context of the governor, timelock, and the caller**. The simulation runs via [Tenderly](https://tenderly.co/), assuming it's supported by the target chain, and provides deep insight into the behavior of the proposal.
## Why Simulation Matters
Blockchain governance comes with irreversible consequences. Once a proposal passes, there's no undo button. That’s why simulation and verification are vital:
* Catch unexpected side effects
* Verify all contract interactions
* Ensure calldata decodes as expected
* Establish a full audit trail of proposal behavior before it's live
By integrating simulation into the governance process, DAOs increase safety and trust for all voters.
We run the same simulations when a proposal is in draft mode, giving the creator peace of mind before posting to the chain.
Below is a tiny screenshot of the feature.
***
## What We Check
When a simulation runs, we verify a comprehensive set of checks.
### ✅ Reports All Events Emitted
We capture and display **every single event emitted** during proposal execution. This allows reviewers to:
* Confirm expected events (e.g. token transfers, role assignments)
* Detect unexpected or hidden contract behavior
### ✅ Reports All State Changes
We log all **changes to contract storage**, including:
* Updated variables
* New values for mappings or arrays
* Any modifications made during execution
This helps confirm that the proposal impacts state exactly as intended—nothing more, nothing less.
### ✅ Decodes Target Calldata
All target calldata is:
* **Decoded into human-readable formats**
* Matched against known ABI definitions
This gives voters and reviewers confidence in the intent of each call and makes it easier to spot misconfigured or malicious data.
### ✅ Verifies All Targets on Etherscan
Each target address in the proposal is:
* Checked for **verified contract source code** on [Etherscan](https://etherscan.io/)
* Flagged if any address points to an unverified or proxy contract
### ✅ Verifies All Touched Contracts on Etherscan
Even if the proposal doesn't directly target them, we:
* **Track every contract that gets touched**
* Confirm verification status for those as well
> Because malicious contracts often use `delegatecall` or indirect hops to hide behavior—we catch those too.
### ✅ Checks for `selfdestruct` in Targets
We analyze each target contract and verify that:
* The bytecode does **not** include the `selfdestruct` opcode
* If present, this may indicate **dangerous or irreversible behavior**
> Proposals attempting to execute contracts with `selfdestruct` will trigger a warning or fail simulation, depending on context.
### ✅ Checks for `selfdestruct` in Touched Contracts
Even contracts indirectly touched during execution are checked for `selfdestruct`. A warning is raised if any are found.
### ✅ Detects ETH Sent With Proposal Execution
We check whether:
* The proposal attempts to send **ETH along with a call**
* If so, it is clearly reported for transparency
This protects against silent ETH transfers or unintentional funding of contracts.
### ✅ Reports All ETH Balance Changes
We analyze **ETH inflows and outflows** for:
* Target contracts
* Touched contracts
* The timelock or DAO itself
This ensures ETH movement is deliberate and easy to audit.
***
## Warnings
If something passes but raises a concern (e.g. unverifiable contracts or decoded calldata with unknown selectors), we **warn but do not block**. These warnings are meant to guide further manual review.
Simulation may pass with warnings. These indicate unusual behavior or unverifiable components that require additional scrutiny.
***
## View on Tenderly
Each simulation links to the full Tenderly trace, including:
* Execution traces
* Gas usage
* Storage diffs
* Event logs
***
## Under the Hood
* Simulations run as if the **governor’s `execute()`** function is being called by the **timelock**, simulating the **final step** in the lifecycle of a proposal.
* The full context includes the actual proposer, governor, timelock, and the current block timestamp.
* We simulate against **forked mainnet state** (where supported), providing real-world fidelity.
***
## Who Benefits?
* **DAO Voters** get peace of mind knowing what they’re voting on
* **Protocol Developers** can debug and verify proposals before submission
* **Governance Facilitators** can provide richer documentation and transparency to the community
## Big thanks to [Seatbelt](https://github.com/Uniswap/governance-seatbelt) 🧷
This feature was **heavily inspired** by the amazing work in the [Seatbelt project](https://github.com/Uniswap/governance-seatbelt), which laid the groundwork for many of the ideas around pre-execution simulation, calldata decoding, and safety verification.
If you're curious about how proposal-level simulations can be structured, we highly recommend checking out their codebase.
# Agora Governor
Source: https://docs.agora.xyz/agora-governor
Modern and flexible smart contracts to power your crypto governance.
Agora isn’t just a contract suite; it’s a cohesive operating system built to simplify and scale every aspect of decentralized governance. By combining intuitive interfaces, structured proposal creation, and flexible voting mechanisms, Agora ensures that your community’s voice is both clearly heard and reliably enforced.
### Built ontop of Open Zeppelin’s industry standard governance system
Agora stands on the shoulders of OpenZeppelin’s battle-tested contracts. By building atop these industry standards, Agora ensures:
* **Trust and Familiarity:** Developers and auditors understand the OpenZeppelin codebase, expediting integration and security reviews.
* **Cost and Time Efficiency:** Reduce audit overhead and complexity by relying on well-known primitives.
* **Modular Extensibility:** Easily plug in new features or upgrades without rewriting your entire governance stack.
Agora’s enhancements—like partial delegation, advanced proposal configuration, and expanded module support—provide a cutting-edge governance platform built with proven foundations.
Think of Agora as edge OpenZeppelin. We are meeting our customers on the frontlines of governance and are committed to Open Source and giving back to the OpenZeppelin community. This is why we are a proud member of the [Governance Working group led by OpenZeppelin](https://blog.openzeppelin.com/announcing-a-new-working-group-for-openzeppelin-governor) and includes other great founding members such as Tally and ScopeLift.
### The Agora Governor Contracts
**The heart of the secure onchain actions that power governance**
Here is the high level structure of the contract code:
[https://github.com/voteagora/agora-governor](https://github.com/voteagora/agora-governor)
```solidity theme={null}
.
├── interfaces
│ ├── IAgoraGovernor.sol
│ └── IProposalTypesConfigurator.sol
├── lib
│ └── openzeppelin
│ └── v2
├── modules
│ ├── ApprovalVotingModule.sol
│ ├── OptimisticModule.sol
│ └── VotingModule.sol
├── AgoraGovernor.sol
└── ProposalTypesConfigurator.sol
```
### **The Governor → AgoraGovernor.sol**
**The Orchestrator of Decentralized Governance**
`AgoraGovernor` is the central hub that manages the entire onchain governance lifecycle, turning raw community input into enforceable actions. By melding flexible configuration, modular design, and secure execution, it ensures that decentralized decision-making remains robust, efficient, and adaptable as your protocol evolves.
**Key Concepts:**
1. **Multi-Module Architecture for Tailored Governance**
Unlike monolithic governance solutions, `AgoraGovernor` integrates with external voting modules, allowing you to blend or swap out different voting strategies as your community’s needs change. Whether you prefer traditional voting, approval-based selection, or optimistic fast-tracking, you are free to build your own voting module, or use one of Agora’s existing modules.
2. **Fine-Grained Proposal Management and Enforcement**
`AgoraGovernor` coordinates the entire proposal lifecycle—creating, queuing, voting, and executing actions. It leverages the `ProposalTypesConfigurator` contract to apply distinct rules, thresholds, and scopes for each proposal type. Need a separate approval process for critical upgrades or treasury disbursements? Define a specialized proposal type, and `AgoraGovernor` ensures it follows the correct process from start to finish.
3. **Role-Based Access and Authorized Adjustments**
With dedicated `admin` and `manager` roles, `AgoraGovernor` carefully balances flexibility and security. This tiered approach ensures that common governance parameters (like voting delays or proposal thresholds) can be tuned over time by trusted parties or the timelock—without sacrificing the decentralized ethos at the heart of the protocol.
4. **Timelock Integration for Secure Deliberation**
By incorporating a timelock controller, `AgoraGovernor` introduces enforced waiting periods between proposal approval and execution. This buffer gives token holders and stakeholders time to review decisions, mitigating risk from rushed proposals or malicious governance attacks.
5. **Robust Voting and Quorum Mechanisms**
`AgoraGovernor` calculates voting power snapshots and enforces quorum requirements and approval thresholds derived from `ProposalTypesConfigurator`. This ensures that significant changes gain broad, verifiable community support before taking effect. Furthermore, the contract’s integration with voting modules lets you push beyond vanilla majority votes into richer, more nuanced consensus models.
6. **Event-Driven Transparency and Auditable History**
From proposal creation to final execution, `AgoraGovernor` emits granular events. This provides a transparent, onchain record of governance activity, enabling the community, analysts, and auditors to track exactly who proposed what, how votes were cast, and which measures ultimately passed. This event-driven audit trail underpins governance legitimacy and community trust.
7. **Granular Control Over Execution and Relay**
By integrating seamlessly with approved modules and controlling the relay of external calls, `AgoraGovernor` ensures that only vetted governance actions make it to execution. This prevents unauthorized code paths, stops malicious modules in their tracks, and fosters a controlled environment where every executed action has a well-defined, community-approved origin.
8. **Extensibility and Future-Proofing**
As the protocol matures, governance needs can evolve—perhaps shifting from a single token model to a multi-asset voting scheme or adding new proposal types that reflect emerging community priorities. `AgoraGovernor` is built to accommodate these changes without heavy refactoring. Update your proposal types, approve new voting modules, or change governance parameters—all with minimal friction and maximum auditability.
### Proposal Types → ProposalTypesConfigurator.sol
**Structured, reliable proposals at scale.**
ProposalTypes allow you and your governance team to set limits and guards on what proposals can do. Actions that are dangerous and potentially destructive such as:
* Transfering more than X from the treasury
* or upgrading the protocol to a new address
These actions might require a higher quorum or higher approval threshold. Whereas smaller, lower stakes actions such as:
* Fund this pre-approved grant committee for another year
* Decide on the date of the next election cycle
Might require lower quorum and approval thresholds so that governance doesn’t grind to a halt when more procedural day to day operations need to approved.
The `ProposalTypesConfigurator` contract streamlines and secures how proposal types are defined and managed within the Agora governance operating system. A proposal type is more than just a label: it represents a distinct governance scope, including the rules, thresholds, and authorized modules associated with that category of proposals.
**Key Concepts:**
1. **Typed, Scoped Proposals:**
Each proposal type encodes specific requirements and constraints—such as quorum and approval thresholds—tailored to the unique demands of different governance actions. The contract creates clear scopes, allowing only certain parts of your system (e.g., a treasury, a security council module, or a grants program) to produce or interact with proposals of that type.
2. **Secure Initialization and Updates:**
The contract can be initialized with a predefined set of proposal types during deployment, ensuring that the governance framework launches with well-defined parameters. After initialization, only the governance admin or the timelock can adjust proposal types, guaranteeing that any changes undergo the proper authorization processes.
3. **Granular Parameterization for Quorums and approvals:**
Each proposal type sets a quorum and approval threshold, both scaled by `PERCENT_DIVISOR` for precise percentage-based calculations. These parameters ensure that the right proportion of token holders or delegates must support a proposal before it can pass. Additionally, the contract enforces input validation, preventing misconfiguration of these critical governance levers.
## Modules
**Extending and customizing your governance system**
In crypto communities, no single voting mechanism will satisfy all the needs of a community over time. Recognizing that governance should evolve with your protocol, Agora’s module system empowers you to incorporate new voting strategies with ease—without changing the core governor contract.
**Key Concepts:**
* **Plug and Play Expansion:** Modules let you introduce new voting rules, data encodings, and counting methods without touching the main governor contract
* **Secure Approval Flow:** Before a module can influence governance, it must be explicitly approved by the governor (admin or timelock). This ensures that only vetted modules become part of your governance pipeline.
* **Fully Customizable:** As long as your module adheres to the provided `VotingModule` interface, you can tailor your logic to represent any decision-making approach—be it Quadratic Voting, Ranked-Choice, Retroactive Funding, or entirely novel schemes.
* **Seamless Interoperability:** By leveraging the `IAgoraGovernor` interface and returning standard `proposalData` and `params` encodings, modules integrate smoothly with the existing governance flow, frontends, and tooling.
* **Flexibility for the Future:** Governance can adapt to shifting community values and technological advances. Introduce new modules as your protocol matures, and retire old ones when they’re no longer needed.
### Voting Modules
The `VotingModule` abstract contract defines a consistent interface that every voting module must implement. This includes functions to:
* **Propose** a new governance action with custom data encodings.
* **Count Votes** according to the module’s logic. (`_countVote`)
* **Format Execution Parameters** so the governor knows how to call contracts if the proposal passes. (`_formatExecuteParams`)
* **Check if a Proposal’s Vote Succeeded** (optional logic).
* **Declare Input Encodings** so external clients know how to interact without guesswork.
Each module is constructed with the governor’s address, ensuring a cryptographic link between governance and the module. Modules must implement `_onlyGovernor()` checks, so only the governor orchestrates module operations.
**For/Against/Abstain Already Built-In:**
The core `AgoraGovernor` uses a **Bravo** counting mode by default, meaning each vote is categorized as For, Against, or Abstain. Modules can build on top of this standard classification or override counting logic to interpret votes differently.
**Why is it called Bravo?** Fun fact that the history of Agora Governor
started with the Compound protocol. Compound released Governor Alpha in 2019
and then hardened these concepts in Governor Bravo in 2020. This became the
basis of OpenZeppelin’s OZ Gov libraries that form the open source, standards
compliant base of Agora Governor.
### Approval Voting Module
This module introduces a more nuanced form of voting. Instead of a simple yes/no/abstain (For/Against/abstain), it allows voters to support multiple options. It includes capabilities like:
* **Multiple Options:** Voters can spread their support across several proposals if allowed.
* **Budget Constraints:** Integrate a token budget to ensure certain proposals don’t exceed allocated resources.
* **Complex Scoring:** Proposals can win by meeting thresholds or by ranking as a top choice among many.
This approach is ideal for complex grant distributions, multi-round elections, or scenario planning. By integrating this module, you give your community the ability to endorse multiple outcomes simultaneously—encouraging richer, more diverse consensus-building.
Dive into the code, [ApprovalVotingModule.sol](https://github.com/voteagora/agora-governor/blob/f542af211d8eeb800603dd203b6a83a804451d85/src/modules/ApprovalVotingModule.sol)
### Optimistic Voting
This module provides an “optimistic” governance mechanism. Instead of needing a majority **For** vote to pass, proposals pass by default unless a certain threshold of **Against** votes is reached. It can also scale thresholds relative to the total votable supply, giving a dynamic security measure that adjusts to community participation levels.
This design is perfect for fast-moving communities that want minimal friction on routine decisions while maintaining strong safeguards for controversial changes. It’s a flexible approach that can speed up common proposals while still providing a backstop against harmful actions.
**Why Signal Only?**
Onchain proposal can be signal proposals → onchain action does nothing ie: the proposal has no calldata that impacts the chain.
Or proposal can be onchain executable → the proposal transaction will be executed and carry out an onchain state change.
Optimism proposal carry a significant security risk and can be used as an attack vector. Someone could propose a malicious Optimistic vote during a company offsite, or at time when they think your team / governance system won’t be around. for that reason by default, we ensure that Optimistic proposals don’t have any actionable calldata.
If you want or need onchain optimistic proposals that have an effect on the chain, please let us know. You will need to implement a security council and know your risks before we will turn that on for you and your community.
Dive into the code, [OptimisticModule.sol](https://github.com/voteagora/agora-governor/blob/f542af211d8eeb800603dd203b6a83a804451d85/src/modules/OptimisticModule.sol)
### Building Your Own Modules
The modules above are just starting points. You can build:
* **Quadratic Voting Module:** Weigh votes by the square root of token balance to mitigate whale dominance.
* **Ranked-Choice Module:** Allow voters to rank preferences and determine winners via instant-runoff.
* **Privacy-Preserving Module:** Integrate zero-knowledge proofs to keep votes confidential, yet verifiable.
As long as you follow the `VotingModule` interface, the sky’s the limit. Design new rules, encode custom parameters, and shape governance in new and custom ways. The governor contract’s flexibility ensures your creations slot in with the existing governance primitives
Note! Contracts require front-end apps to be interacted with unless you want a
command line DAO. If you are building a module, you will need to build an
interface to support it. Better module support is coming in 2025, see below,
but until then, please contact us and we can discuss how to build your module
into Agora for your community.
Want to build a module? Visit Agora’s Module Bounty and earn RetroPGF from
Agora when you build and deploy a module to our store! Sign up here for our
developer program and start contributing to onchain governance.
## Current State & Future Roadmap
Agora isn't a static solution; it's an evolving framework built to stay ahead of emerging governance trends.
* **Agora Governor v1.0:** Launched with core governance features—proposals, voting, execution.
* **Agora Governor v1.0.1 (Current):** Minor Bug fixes and better ProposalType support with detailed scopes.
* **Agora Governor v1.0.2 (Jan 2024) :** Minor bug fixes and better ProposalType validator
### Looking Ahead: Agora Governor 2.0
The future of Agora is all about modularity, interoperability, and scale:
* **Expandable Voting Modules:** Introduce complex, domain-specific voting mechanisms or integrate zero-knowledge proofs for private voting.
* **Advanced Permissioning:** Fine-tune access control and delegate authority with greater precision, empowering sub-communities or specialized committees.
* **Cross-Chain Governance:** Govern across multiple networks seamlessly, enabling DAOs to thrive in an increasingly interconnected ecosystem.
# Governor Roles
Source: https://docs.agora.xyz/agora-governor-roles
Understanding the Governor Manager and Admin roles in Agora Governor (v1.0 - v1.2)
## Role Overview
When deploying an Agora Governor contract, two critical addresses must be defined:
* Governor Manager
* Governor Admin
## Governor Manager Role
The Manager role has a focused set of permissions designed for proposal creation.
### Permissions
The Manager has a single but important capability:
* Create proposals without meeting the proposal threshold requirement
### Implementation Recommendations
* Can be an Externally Owned Account (EOA) or a multisig
* Suitable for active community members or teams responsible for regular proposal creation
* Should be assigned to trusted entities as they can bypass proposal thresholds
## Governor Admin Role
The Admin role carries significant power, comparable to the timelock contract itself. This role should be handled with extreme care.
### Permissions
The Admin can bypass the governance process for the following actions:
**Proposal Management**
* Update deadlines of active proposals
* Cancel proposals
* Update proposal types of active proposals
**Governance Parameters**
* Modify voting delay
* Adjust voting period
* Update proposal threshold
* Create or modify proposal types (including quorum & approval thresholds)
**Role Management**
* Update the admin address
* Update the manager address
**Module Control**
* Enable or disable voting modules (external contracts that can override proposal creation and voting logic)
### Security Recommendations
Due to the extensive powers of the Admin role:
* **Strongly recommended** to be implemented as a multisig with a high signature threshold
* Typically represents the security council
* Should have strict operational procedures and multiple signers
## Role Management
### Disabling Roles
Both the Manager and Admin roles can be effectively disabled:
* Transfer the role to the zero address (`0x0000000000000000000000000000000000000000`)
* Can be re-enabled through a governance proposal
* Timelock (governance) retains the ability to restore the roles
### Important Notes
* The timelock (governance) always maintains access to the same functions as the admin
* Role changes should be carefully considered and executed
* Disabling roles provides an additional security option if needed
# Agora API
Source: https://docs.agora.xyz/api-reference/introduction
The power of governance primitives at your fingertips.
## Coming soon
Full documentatino for Agora's API will be available here soon. For now, please continue to find it at [Agora's Optimism API](https://vote.optimism.io/api_v1)
# Protocol Governance 101
Source: https://docs.agora.xyz/crypto-governance-101
Lean how Agora can help you build and run your crypto governance projects.
## Introduction
Governance is the cornerstone of healthy, self-sustaining communities. As protocols mature, they must address the complexities of growth, evolution, and security—all without sacrificing the values of transparency and decentralization. Onchain governance systems allow you to maximize both dimensions of transparency and decentralization by giving your members a way to vote directly, delegate their voting power, or elect community members to vote on their behalf.
Choosing a great governance software is a crucial step in making sure your protocol outlives you.
## What is Crypto Governance?
Crypto governance, or onchain governance is the software, contracts and protocols that dictate how communities coordinate, propose, and implement changes. At the core, these contracts live onchain to enable:
* **Decentralization:** Decisions flow from the community, not a centralized authority.
* **Transparency:** Every proposal, vote, and action is publicly verifiable, reducing the risk of hidden agendas or conflicts of interest.
* **Security:** Trustless execution and immutable record-keeping harden decision-making against manipulation and censorship.
Through onchain governance, DAOs and protocols manage complex coordination tasks at scale, including but not limited to:
* Parameter calibration (interest rates, liquidity thresholds, governance parameters etc.)
* Smart contract upgrades and migrations
* Treasury allocations and budget approvals
* Community grants, research funding, and ecosystem growth initiatives
Agora builds on these foundational principles, delivering a versatile, future-proof governance infrastructure that is both developer-friendly and community-centric.
## Governing the System
Crypto Governance is powered by a set of smart contracts that enable secure, transparent community decision-making. These contracts together are referred to as the Governor.
### The Governor
Governor contracts are responsible for:
* **Proposal Creation:** Community members can suggest improvements, parameter changes, or new initiatives
* **Voting & Delegation:** Token holders can either:
* Vote directly on proposals
* Delegate their voting power to trusted community members
* **Execution & Management:** Approved proposals are automatically queued and executed through secure timelock mechanisms
* **Access Control:** Configurable permissions ensure only eligible participants can create and vote on proposals
* **Security Measures:** Built-in protections against both technical exploits and social attacks
* **Transparency:** All actions are recorded on-chain and publicly verifiable
* **Flexibility:** Customizable voting parameters and proposal types to match your community's needs
The governance system can start with tight controls and gradually transition
to more permissionless governance as your community matures. See the [choose
your own adventure](#chose-your-own-adventure) section for more details.
[**View the Full Agora Governor Documentation**](#) for detailed explanations, code references, and best practices.
## Chosing a Token
So far, we have seen that the Agora Governance Operating System has a powerful set of tools to make sure you can run flexible, secure and resilient governance process. But how do you actual govern it?
The two most common ways protocols are governed are using tokens. These tokens then represent a given number of votes. Traditional crypto governance is **one token, one vote.** So that means the more tokens, the more votes. However, it is also common to make an NFT (ERC-721) your governance token. Given that NFTs typically have less supply, this could lead to a more deliberate governance system with a smaller number of delegates or token holders that can participate. These are all choices to be made as you setup your governance system
**What's a token?**
A token is smart contract that implements standard interfaces that acts as currency or store of value. The two most popular token standard interfaces in the crypto community and specifically on the EVM is the [ERC-20](https://ethereum.org/en/developers/docs/standards/tokens/erc-20/) and [ERC-721](https://eips.ethereum.org/EIPS/eip-721) (NFT) token contracts.
We will go over the details that are important to governance below, but for a more indepth understanding of these tokens, their wallet support etc, please refer to the official standards above.
### ERC20 Token Governance
**Leveraging Industry Standards for Flexible, Accountable Governance**
At its core, ERC20 is a versatile token standard that defines how tokens are transferred and how balances are recorded. When combined with governance extensions like **ERC20Votes**, it becomes a powerful vehicle for enabling participation and representation in decentralized decision-making. Instead of requiring every token holder to vote directly, ERC-20 delegation empowers them to entrust their voting power to representatives who can engage more deeply on their behalf.
* **Separation of Ownership and Voting Power:**
With ERC20 delegation, token ownership and voting authority don't have to reside in the same address. A user can still hold their tokens securely while delegating their voting power to a more active participant, ensuring the community's collective decision-making remains vibrant and well-informed.
* **Dynamic and Reversible Representation:**
Delegation is not a permanent action. Token holders remain in full control—able to change or revoke their delegation at any time. If a delegate's voting behavior no longer aligns with a token holder's interests, the voting authority can be seamlessly reassigned to another representative or reclaimed entirely.
* **Voting Power Snapshots**
ERC20Votes integrates snapshot capabilities, ensuring that voting power is calculated based on token balances at specific historical blocks. This prevents sudden changes in token distribution from skewing outcomes mid-vote and guarantees a fair and stable voting process.
The default for `AgoraGovernor` is to use voting power at the snapshot of
the block when the proposal is created. That way, if delegation or someone
buys a bunch of tokens to inluence a specific vote, they won't be able to do
it for that proposal and will have to wait for the next one
* **Compatibility with Agora and Custom Modules**
Within the Agora framework, ERC20 delegation working seamlessly with proposal types and voting modules you've configured. Whether you use standard majority voting, approval-style multi-choice voting, or optimistic governance, delegation works seamlessly with all modules, thresholds, and rules set through the `ProposalTypesConfigurator`.
* **Scaling and Community Building:**
As your community and protocol scale, delegation helps maintain governance efficiency. By concentrating voting power in the hands of trusted delegates—who might be domain experts, active community members, or specialized committees—ERC-20 delegation reduces voter fatigue, promotes informed discourse, and ensures the protocol's governance can handle increased complexity over time.
### Common Gotchas & Design Pitfalls
Developers often assume `ERC20Votes` is “just an ERC20 with delegation.” In practice, following the **spirit and intent of `IVotes`** requires careful attention. Below are the real-world pitfalls that frequently cause governance failures, forked state, or unexpected voting power behavior.
***
#### 1. **Forgetting to Override Token Transfer Hooks**
`ERC20Votes` requires you to call vote-tracking hooks on mint, burn, and transfer.
* Missing hooks = incorrect voting power.
* Incorrect voting power = proposals passing or failing incorrectly.
Required internal calls:
* `_update` during transfers
* `_transferVotingUnits` during mint/burn
Without these calls, you run the risk of not accurately displaying voting power.
***
#### 2. **Delegation Requires an Explicit Transaction**
`IVotes` does **not** automatically give an address voting power when it receives tokens.\
A holder must **explicitly delegate**, even to themselves.
**Best practice:**\
Consider delegating to `msg.sender` on mint *only if* your governance model intends that behavior.
***
#### 3. **Delegation Moves With Transfers Only in Spirit, Not Automatically**
Delegation is bound to the **holder**, not the **tokens**.
This means:
* When a holder transfers tokens away, their delegate loses voting power.
* When they receive tokens, their delegate gains voting power.
If your token has custom transfer logic or restricted transfers, ensure voting delegations logic remains untouched unless you want to manage delegations directly.
***
#### 4. **Relying on Live Balances Instead of `getPastVotes`**
Governance must rely on **historical snapshots**.
Using `balanceOf` or `getVotes` during voting is a critical mistake.
You must use:
* `getPastVotes(blockNumber)`
* `getPastTotalSupply(blockNumber)`
Using live balances enables last-minute manipulation and breaks compatibility with governance tooling.
***
#### 5. **Checkpoint Growth & Gas Costs**
Checkpoint arrays can grow large for highly traded or frequently minted/burned tokens.
Common mistakes:
* Using an ERC20Votes token as a high-frequency trading asset
* Large amounts of automated minting or burning
The guidance is to prefer a dedicated governance token to minimize checkpoint spam.
***
#### 6. **Off-Chain Signatures for Delegation**
`delegateBySig` uses EIP-712 signatures. Developers often:
* Misconfigure the domain separator
* Reuse a domain intended for `permit`
* Create signatures incompatible with chain forks or upgrades
This silently breaks gasless delegation.
***
#### 7. **Token Supply Changes Must Be Checkpointed**
Minting or burning must also checkpoint supply updates.
Common mistakes:
* Forgetting to track total-supply checkpoints
* Minting in an initializer, desyncing block 0 supply
* Skipping `_transferVotingUnits` on burns
This leads to incorrect quorum calculations in addition to incorrect voting power as outlined above.
***
#### 8. **Rebasing or Elastic Tokens Are Incompatible**
Rebasing tokens fundamentally break snapshot logic because snapshots assume historical balances remain valid.
A rebasing token:
* Changes balances retroactively
* Cannot be reconciled with `getPastVotes`
Rebasing tokens should not use `ERC20Votes`.
***
#### 9. **Delegation Graph Misunderstandings**
`IVotes` only supports one-hop delegation.
* Alice → Bob → Carol
* Alice’s votes go to Bob
* **Not** Carol
Some protocols assume multi-hop propagation, which is incorrect. For more advanced delegation schemes see `ERC20VotesPartialDelegationUpgradeable`
***
**Further Reading:**
For more technical details, best practices, and implementation examples, refer to the [OpenZeppelin ERC-20 Documentation](https://docs.openzeppelin.com/contracts/5.x/erc20). Their guidance, patterns, and security considerations provide a solid foundation, ensuring that your delegation and governance mechanics rest on a well-tested and industry-recognized standard.
### ERC20 Token Governance with Partial Delegation
**Empowering Flexible, Granular Governance in Decentralized Systems**
The `ERC20VotesPartialDelegationUpgradeable` contract extends the widely used ERC20 standard, integrating powerful governance capabilities with a focus on flexibility and user autonomy. By enabling partial delegation, this token supports nuanced voting mechanisms that cater to diverse governance needs.
* **Partial Delegation for Precision Representation:**
Unlike standard delegation, which transfers all voting power to a single delegate, partial delegation allows token holders to assign specific portions of their voting power to different representatives. This enables token holders to distribute influence across delegates based on expertise or trust, fostering more informed and effective decision making.
* **Historical Vote Power via Checkpoints:**
Built on OpenZeppelin's checkpointing system, the contract tracks voting power at specific historical blocks. This ensures integrity in governance by preventing last-minute token movements from distorting outcomes and provides a transparent and auditable governance process.
* **Dynamic and Flexible Delegation:**
Delegators can modify or revoke their delegations at any time, retaining full control over their governance participation. This adaptability allows for responsive shifts in representation, ensuring alignment with evolving community needs and priorities.
* **Votable Supply Calculations for Dynamic Quorums:**
The contract provides builtin methods to calculate the votable supply, taking into account delegations, snapshots, and other governance specific constraints. These helper methods make it straightforward to configure dynamic quorums in AgoraGovernor, ensuring that quorum thresholds adapt automatically to changes in token distribution or governance requirements.
* **Seamless Integration with Agora Governance:**
The contract integrates seamlessly with Agora's modular governance framework, supporting diverse proposal types and voting rules. With `ProposalTypesConfigurator`, you can leverage dynamic quorum settings enabled by votable supply calculations to tailor governance to your protocol's unique needs.
* **Delegate-On-Behalf Functionality:**
The addition of `delegatePartiallyOnBehalf` extends usability, allowing token holders to delegate portions of their voting power programmatically or through third-party applications. This facilitates automation and integration with external governance platforms.
* **Scaling Governance for Complex Communities:**
As communities grow, governance systems must scale efficiently. By concentrating voting power among knowledgeable delegates while allowing granular participation through partial delegation, the `ERC20VotesPartialDelegationUpgradeable` token reduces voter fatigue and fosters expert-driven governance without compromising inclusivity.
**Technical Foundations and Best Practices**
For implementation details, refer to the [OpenZeppelin Checkpoints Documentation](https://docs.openzeppelin.com/contracts/5.x/api/utils#Checkpoints) and review the full source code for the [`ERC20VotesPartialDelegationUpgradeable`](https://github.com/voteagora/ERC20VotesPartialDelegationUpgradeable) contract. These resources provide essential guidance on best practices, security considerations, and integration patterns.
### NFT Voting Section
## Launch Your Token
Launching a token is core step in establishing your community's crypto governance system. Beyond simply minting assets, thoughtful token design, tokenomics and distribution shape the dynamics of governance participation, delegation, and decision-making. Agora's Launch offering streamlines the token creation process—ensuring compliance, flexibility, and seamless integration with the Agora governance operating system.
[Agora Token Launch](https://www.notion.so/Introducing-Agora-Launch-15b528b28fc480b29461f5b444d936fe?pvs=21) is a suite of products that Agora offers to give you the flexibiltiy you need when launching your token.
Once your token is live and there is a circulating supply, users can delegate, vote, and create proposals that will shape your community.
Crypto has a polarizing reputation due to bad token launches. Note that
governance can help you build a great community but it is not related to your
token price, or the dynamics of your token economics. These dynamics are
rightfully called: tokenomics. Agora has partnered with some of the top and
reputable tokenomics experts in the business. Learn more by explore our
services partners here: [Service Partners](https://agora.xyz/partners)
## Interacting with your Governor
Now, you understand your contracts and tokens you are probably wondering how users actually use your application and interact with the contracts. Given that these are smart contracts, once deployed there is nothing stopping anyone from interacting with these contracts but, we want to give them an incredible experience and with that in mind, we built Agora App.
Agora App lets you:
* **Manage your Governor**: Manage key governor settings with a nice and friendly UI
* **Manage the proposal lifecycle**: Create, sponsor, queue, and execute proposals in just a few clicks.
* **Delegate & Vote**: Delegate or revoke voting power, cast votes, view vote results—all from one interface.
* **Customizable Look & Feel**: Theming options (including dark mode) and easy-to-modify CSS let you align with your DAO's branding.
Learn more about [Agora App](/agora-app-lander) and how it can serve your community.
## Security
Our philosophy is simple: **prioritize security at every layer**. From the transparency of our open-source code to carefully controlled voting strategies, our governance operating system is designed to safeguard against both technical exploits and social engineering attacks.
Learn more about [Agora Security](/security).
Any changes that you and your team make **must be audited**. Even if you believe
you know what you are doing, or you are making a small change. It's important for
your safety and the safety of your community that you get all of your code audited.
## Chose your own adventure
Every protocol's journey toward full permissionless, trustless governance is unique. While the end goal may be a fully self-sustaining, onchain community, it often makes sense to start from a more controlled environment and gradually open up. Here is an example path many of customers take:
**Tight Control to Start**
Begin with a highly restrictive configuration—set a high proposal threshold or require proposals to originate from a designated manager role. This allows you to stabilize your protocol, refine decision-making processes, and ensure that only vetted changes make it onchain in the early stages.
**Incremental Opening of Access**
As the community grows more confident and established, you can use Agora's governance proposals to systematically lower thresholds or grant proposal rights to more community members. Over time, hand off decision-making power from a small, trusted core to a broader, more diverse set of participants.
**Progressive Onchain Expansion**
Start with small, low-risk onchain actions—like updating parameters or distributing small grants—to build trust and ensure the governance framework works as intended. As operations mature, bring more substantial treasury funds, infrastructure upgrades, and critical parameters onchain, gradually increasing the community's direct influence.
**Best Practices and Guides:**
Throughout this gradual transition, Agora's Governance Guides and advisory services help your community navigate key milestones. Whether it's choosing the right moment to lower proposal thresholds, formalizing a security council, or scaling treasury management, you'll have access to proven strategies and recommended steps.
Not Agora plans come with full [Agora Guides](/governance-guides) and 1:1
consulting. If you are unsure let us know and we can direct you to the right
package.
## Your First Proposal
Creating your first governance proposal is a significant milestone for your crypto community, here are some best practices when thinking about to approach it effectively:
### Types of First Proposals
Common first proposals that help establish governance include:
* **Parameter Updates:** Start with low-risk changes like adjusting voting periods or proposal thresholds
* **Treasury Setup:** Establish basic treasury management rules and initial allocations
* **Delegate Programs:** Create frameworks for delegate responsibilities and expectations
* **Community Guidelines:** Formalize proposal standards and discussion processes
### Best Practices
* **Start Simple:** Choose a straightforward proposal that's easy to understand and implement
* **Build Consensus:** Discuss the proposal in community forums before formal submission
* **Document Clearly:** Include:
* Clear objectives
* Implementation details
* Expected outcomes
* Risk assessment
* Timeline for execution
Remember that your first proposal sets a precedent for future governance
actions. Take time to get it right and use it as a learning opportunity for
the community.
# Not sure how to get started?
Setting up governance for your protocol is a significant undertaking, but you don't have to figure it out by yourself. Agora is here to help you succeed.
* **Expert Guidance:** Our team has helped launch and maintain governance for some of the largest protocols in the space
* **Battle-tested Tools:** Use the same infrastructure trusted by leading DAOs and DeFi protocols such as Optimism, Scroll, Derive, Uniswap\*, ENS\* and many more.
* **Flexible Support Options:**
* **Standard:** Technical support and governance templates
* **Pro:** Dedicated support and custom governance design
* **Enterprise:** Full-service governance implementation and ongoing consultation
Whether you're just starting out or ready to scale, we have the tools and expertise to help your protocol succeed. Let's build sustainable governance together.
Talk to one of our governance experts to see how Agora can help you organize
and govern your community in a secure, flexible and powerful way.
***
\* These customers are using Agora App and not Agora Governor
# Glossary
Source: https://docs.agora.xyz/crypto-governance/glossary
Learn the crypto governance jargon, look smarter in meetings.
## Approval threshold
The percentage of votes that a proposal needs to succeed and execute the proposal's [proposed transactions](#proposed-transactions). A standard proposal using the [Bravo](#bravo) (for/against/abstain) counting method has an approval threshold of 51% mirroring to common sense democracies in the real world.
## Bravo
Bravo is the codename used for the default voting module in the Agora Governor. It allows delegates to vote For/Against/Abstain.
The word comes from the Compound Bravo governor which popularized this voting mechanism.
## Delegate
The name given to an address on a blockchain that holds [voting power](#voting-power). Delegates vote on [proposals](#proposals) and can delegate their voting power to others.
## Governor admin
A privileged role that can perform emergency actions like canceling malicious proposals. This role can be transferred or removed through governance.
## Proposals
Onchain proposals are an object created in the storage of the governor smart contract that contain:
* a description
* a proposal type
* a list of [proposed transactions](#proposed-transactions)
Proposals are the objects that move the governance of the protocol forward.
Think of them as bills, or laws in a typical democractic system.
## Proposal threshold
The [voting power](#voting-power) needed to create a proposal and send it to the governance system for a vote.
## Quorum
The minimum number of votes needed for a proposal to be considered valid. This ensures that important decisions aren't made with too little participation from the community.
## Proposed transactions
Onchain [proposals](#proposals) can have one or many blockchain transactions attached to them that will be executed once the proposal succeeds and moves through the delay period of the proposal lifecyclye. The power of these transactions is that if the proposal passes, and is not cancelled during the queue period, the transactions attached are sent to the chain for execution. This allows for true automated actions and automated governance.
## Timelock
A security mechanism that enforces a waiting period between when a proposal is approved and when it can be executed. This gives the community time to react to potentially malicious proposals.
## Voting delay
The period between when a proposal is created and when voting can begin. This ensures the community has time to research and discuss the proposal before casting votes.
## Voting period
The duration during which token holders can cast their votes on a proposal. This period starts after the voting delay ends.
## Voting power
The specific number of votes a crypto wallet has at a given block. In the standard [Agora Governor](/agora-governor) the voting power of an address is determined at the block the proposal was created + the voting delay.
## Proposal type
A configuration that defines the rules, thresholds, and requirements for different kinds of proposals. Different proposal types can have different quorum requirements, approval thresholds, and voting modules.
## Voting module
A component that defines how votes are counted and processed. Examples include Bravo (For/Against/Abstain), Approval, and Optimistic voting.
## Votable supply
The total amount of tokens that are eligible to vote at a given time, excluding tokens that are locked, unclaimed, or otherwise unable to participate in governance.
# More Playbooks
Source: https://docs.agora.xyz/governance-guides
Playbooks and guides to help you run your governance
Beyond tools and interfaces, Agora provides guides for you and your team to help you operationalize governance efficiently and confidently. Access actionable playbooks for common governance scenarios:
* [**Preparing your protocol for governance:**](/preparing-your-protocol-for-governance) Before you start moving money onchain, make sure you have the right controls in place.
* [**Onchain Execution Checklist:**](/onchain-execution-guide) Before you start moving money onchain, make sure you have the right controls in place.
### Coming soon
* **Initial Governance Setup:** Learn which proposals to run first and how to configure your voting parameters.
* **Building a Security Council:** Outline steps to form a trusted body that can handle critical decisions.
* **Electing Stewards:** Find tips for choosing community representatives to champion long-term protocol vision.
* **Running a Grants Program:** Explore best practices for funding community initiatives, research, and growth experiments.
These Runbooks empower your community with proven frameworks and repeatable strategies, ensuring you don't have to reinvent the wheel each time you tackle a new governance challenges
Talk to one of our governance experts to see how Agora can help you organize
and govern your community in a secure, flexible and powerful way.
# Governance Technical Overview
Source: https://docs.agora.xyz/governance-technical-overview
A technical overview of Agora's governance system components and the lifecycle of a proposal.
## System Components
### Core Components
* **Token**
* Tracks token holder balances
* Manages voting power of delegates
* Enables voting on proposals
* **Governor**
* Provides primary access control logic
* Processes proposals and associated votes
* Determines proposal success or failure
* Manages voting periods and thresholds
* **Timelock**
* Receives instructions from governor for successful proposals
* Implements time delay for stakeholder response
* Executes approved instructions after delay period
### Additional Components
* **Modules** (e.g., approval voting)
* Provide optional voting strategies
* Enable features like multiple choice voting
* Extend governor functionality
### Privileged Roles
For detailed information about roles and permissions, see the [Agora Governor Roles](/agora-governor-roles).
* **Governor Manager**
* Trusted address with proposal submission rights
* Can bypass proposal threshold requirements
* Typically controlled by the foundation initially
* **Security Council**
* Trusted multisig with protocol upgrade capabilities
* Can perform emergency upgrades when needed
* Ensures protocol safety during critical changes
* **Governor Admin**
* Trusted multisig with broad system privileges
* Enables manual execution and intervention
* Can be same address as Security Council (optional)
* Acts as last-resort safeguard
## Proposal Lifecycle
#### Example Voting Cycle
### Proposal States
Below is an overview of the proposal states used in Agora.
1. PENDING
The proposal has been created but is not yet ready for voting. This is typically a waiting period before voting begins.
2. ACTIVE
The proposal is currently in its voting period and can accept votes. During this state, only admins can cancel the proposal.
3. CANCELLED\
The proposal was cancelled by either the admin or the proposer (depending on the governance system). Once cancelled, the proposal cannot be executed.
4. DEFEATED\
The proposal failed to meet the required voting thresholds or quorum requirements and cannot be executed.
5. SUCCEEDED\
The proposal passed the voting requirements and is ready to be queued for execution. Successful proposals can be queued by calling the queue function. Anybody with gas can make this transaction.
6. QUEUED\
The proposal has been queued and is waiting for the timelock period to pass. During this state:
* The proposal can still be cancelled by the admin
* Once the timelock period passes, it becomes eligible for execution
7. PASSED
The proposal has been queued for execution, but for any reason hasn't been executed on chain after 10 days. Reasons might include nobody calling the execute function or a proposal with invalid on-chain instructions. Example would include a signal-only vote done on-chain with no-op instructions that cause the timelock to revert. This state exists only off-chain, to clarify that no action is needed by the user, since it's off chain.
8. EXECUTED\
The proposal has been executed, meaning its contained actions have been carried out. This is the final state of a successful proposal.
9. CLOSED\
The proposal's voting period has ended but it did not meet the requirements to succeed. This is similar to DEFEATED.
### Initial Launch Configuration
While the end goal for any protocol is full decentralization (where the DAO and voters have full control over token transfers, protocol upgrades, and more), we recommend a measured, progressive approach to decentralization. At launch, we recommend maximum safety and control:
1. **High Proposal Threshold**
* Set initially high to restrict proposal creation
* Only Governor Manager (Foundation) can propose initially
* Enables controlled governance rollout
2. **Manual Protocol Upgrades**
* Protocol upgrades executed manually at first
* Continues until successful proposal track record
* Ensures maximum safety during early phase
### Example Proposal Types
1. **Token Transfer Proposal**
* Fully executed on-chain
* Standard governance process
* Automated execution through timelock
2. **Normal Protocol Upgrade**
* Requires Security Council execution
* Manual implementation for safety
* Additional verification layer
3. **Emergency Protocol Upgrade**
* Bypasses standard governance process
* Direct Security Council execution
* Reserved for critical situations
## Progressive Decentralization
As the governance system matures:
1. **Proposal Threshold Reduction**
* Gradually lower proposal requirements
* Enable broader community participation
* Allow smaller token holders to propose
2. **Upgrade Process Evolution**
* Move toward fully on-chain upgrades
* Reduce manual intervention
* Increase automation of execution
3. **Community Empowerment**
* Expand voting power distribution
* Enhance proposal creation access
* Foster decentralized decision-making
This progressive approach ensures the governance system can evolve safely while maintaining security and stability.
# Agora Token Launch
Source: https://docs.agora.xyz/launch
Launch your token with style and confidence
1. **Seamless Integration with Agora Governance:**
By launching your token with Agora, you ensure that governance capabilities (like ERC20Votes or Partial Delegation) are tightly integrated from day one. Your token becomes a first-class citizen in onchain proposals, delegations, and governance modules, reducing friction as your community scales.
2. **MICA-Compliant ICOs:**
For projects targeting European markets or other jurisdictions that require compliance with emerging crypto regulations, Agora Token Launch supports MICA-compliant ICOs. This ensures that your token distribution adheres to regulatory standards, offering transparency and investor protection. Launching under MICA guidelines can solidify trust with stakeholders and preempt regulatory hurdles.
3. **Flexible Claims Models:**
Agora Token Launch supports multiple token claim flows, allowing you to choose the model best suited to your community’s needs and values:
* **Hard Claim:** Token recipients explicitly claim their tokens by initiating an onchain transaction (paying gas fees themselves). This model shifts operational costs to the recipient, fosters accountability, and makes distribution transparent.
* **Soft Claim:** Tokens are distributed without requiring the recipient to pay gas. Agora (or your treasury) can cover the claim process, lowering the barrier to entry and encouraging broader participation—ideal if you want to cast a wide net and ensure inclusivity. You can also make sure that you are rewarding address for other onchain or
* **Hard Claim + Soft Claim Hybrid:** Combine both approaches to create a tiered or phased distribution strategy. For example, allow early adopters to “hard claim” their tokens, reflecting their higher level of engagement, while later participants benefit from a “soft claim” model that removes friction. This hybrid approach can balance user effort, cost, and overall community growth.
4. **Token or NFT—Your Choice:**
Agora Token Launch supports both ERC-20 (fungible tokens) and ERC-721 (NFTs). Launch a flexible, high-volume token for traditional “one token, one vote” governance, or opt for NFTs for a more curated, membership-like experience. Mix and match these asset types as your ecosystem grows and diversifies.
5. **Developer-Friendly Tooling:**
With robust APIs, SDKs, and documentation, Agora Token Launch empowers developers to integrate token minting and distribution seamlessly into their existing workflows.
6. **Expert Guidance and Best Practices:**
Beyond the technology stack, Agora offers guidance on tokenomics, distribution schedules, and community-building strategies. Backed by our Runbooks and best-in-class support, you’ll have access to proven frameworks for initial governance setup, electing stewards, managing claim windows, and scaling your community.
### Steps to Launch Your Token with Agora
1. **Define Your Tokenomics and Governance Vision:**
Start by articulating your governance goals, participation incentives, and desired regulatory stance. Determine whether you need MICA compliance or simply want a straightforward ERC20 or NFT launch.
2. **Select a Claims Model:**
Decide if you want a Hard Claim, Soft Claim, or a Hybrid approach. Consider your audience’s familiarity with onchain transactions, their comfort with gas fees, and how quickly you want broad distribution.
3. **Consult With Agora’s Experts (Optional):**
Depending on your Agora plan, you can tap into advisory services. Our team can help you refine distribution parameters, ensure compliance, and integrate voting modules upfront.
4. **Configure Your Token in the Agora Dashboard:**
Set up your token’s parameters—name, symbol, supply, distribution rules, and claim model. Enable governance extensions like ERC20Votes or Partial Delegation right out of the gate.
5. **Deploy and Launch:**
Deploy your token contract with a single click or via CLI tools. For MICA-compliant ICOs, Agora provides a streamlined process with built-in transparency and reporting features.
6. **Distribute and Engage:**
Open up claim windows, invite community members to participate, and track adoption. Use Agora’s client interface to delegate voting power, sponsor proposals, and conduct initial onchain actions that reinforce engagement and trust.
7. **Grow Your Community and Governance:**
As more participants claim tokens and delegates step forward, leverage Agora’s governance modules to shape proposals, adjust voting thresholds, and evolve towards more decentralized, community-driven governance.
# Multi-token Governance
Source: https://docs.agora.xyz/multi-token-governance
How to leverage multiple tokens in your governance system
Do you have more than one token you're considering using for your governance? Agora is able to support almost any configuration of tokens for governance (with different complexity and cost profiles) to support the appropriate governance strategy for your protocol.
**Start with a single gov token where possible**
Generally, our recommendation is to always start with a single token as your source of voting power for the sake of simplicity. For example, if you have a *token* and staking mechanism that returns a *stToken,* we generally recommend to start with using ONLY your stToken as your source of voting power. Since you generally already want to encourage your users to stake, making the staking token the governance token adds to that incentive.
**Aggregate the voting power of multiple tokens via zk proof**
If you're certain in needing to aggregate the voting power of multiple tokens, then Agora can support your needs with our *multi-token voting module.* This plugin allows us to aggregate the voting power of multiple tokens off-chain via a zk proof (using Succinct's SP1). This module is more powerful but also inherently more complex.
Advantages:
* Supports any number of both ERC20s and NFTs
* Weight voting power from different tokens differently (for example 1 NFT = 100 units of voting power vs 1 ERC20 = 1 unit of voting power)
Disadvantages:
* Requires custom integration of your token contracts, which is more time consuming and costly
* More complex for your users to understand and keep track of. Also introduces user experience edge cases.
**Using tokens in different roles**
If you have different tokens that perform different roles, Agora can support systems like this via custom integrations. Example use cases for this kind of system typically include one governance token used for active governance (like LDO) and a protocol-issued asset token (stETH) with veto power over decisions.
Talk to one of our governance experts to see how Agora can help you organize
and govern your community in a secure, flexible and powerful way.
# Notifications Hub
Source: https://docs.agora.xyz/notifications-hub
Centralized hub for configuring multi-channel notifications across all your governance activities.
## What is the Notifications Hub?
The Notifications Hub is a centralized preferences screen where you configure how you receive governance notifications. Instead of relying on a single channel or missing important updates entirely, you can connect multiple channels and fine-tune exactly which events trigger notifications.
**Key benefits:**
* **Multi-channel delivery**: Receive notifications via email, Discord, Slack, Telegram, and/ or browser push
* **Per-event control**: Enable or disable notifications for specific events across each channel
* **Wallet-linked preferences**: Your settings are tied to your connected wallet
* **Instant setup**: Connect a channel and start receiving notifications immediately.
Whether you're a delegate tracking new proposals or a community member following forum discussions, the Notifications Hub ensures you stay informed on your terms.
## Setting Up Notifications
Getting started takes just a few steps. Once configured, your preferences persist across sessions - update them anytime from the Notifications Hub.
### Step 1: Sign to Manage Notifications
To access the Notifications Hub, you must first link your wallet to your notification preferences.
1. Connect your wallet to the governance site
2. Open the wallet dropdown menu
3. Select **"Sign to manage notifications"**
The signature does not grant any permissions or authorize transactions. It simply verifies wallet ownership so your preferences can be securely associated with your address.
After signing, you'll be taken directly to the **Notification Preferences** screen.
### Step 2: Connect Your Channels
The Notifications Hub supports five notification channels. Connect as many as you like - each channel operates independently, giving you maximum flexibility.
Available channels:
| Channel | Description |
| ---------------- | ------------------------------------------------------------------ |
| **Email** | Receive notifications in your inbox. Requires verification. |
| **Discord** | Send notifications to a Discord channel via webhook. |
| **Slack** | Deliver notifications to a Slack channel via incoming webhook. |
| **Telegram** | Get real-time mobile notifications through the Agora Telegram bot. |
| **Browser Push** | Receive native browser notifications on your current device. |
### Step 3: Choose What You Want to Be Notified About
Once your channels are connected, use the notification events table to customize your preferences. Each row represents a specific event type, and each column represents a connected channel.
Toggle notifications on or off for each combination of event and channel. For example, you might enable email notifications for new proposals but prefer to receive forum activity updates only via Discord.
Your preferences save automatically as you make changes.
## Notification Channels Explained
### Email
Email notifications are delivered directly to your inbox. When you add an email address, you'll receive a verification email - click the link to confirm ownership before notifications can be sent.
**Setup:**
1. Enter your email address in the Email field
2. Click **Connect**
3. Check your inbox for a verification email
4. Click the verification link to activate
Check your spam or junk folder if you don't see the verification email within a few minutes.
### Discord Webhook
Discord webhook notifications send messages directly to a Discord channel of your choice. This is ideal for teams or communities that coordinate through Discord.
**Setup:**
1. In Discord, open your server's **Server Settings**
2. Navigate to **Integrations** → **Webhooks**
3. Click **New Webhook** and configure the target channel
4. Copy the webhook URL
5. Paste the URL into the Discord Webhook field in the Notifications Hub
6. Click **Connect**
Once connected, governance notifications will appear in your chosen Discord channel.
### Slack Webhook
Slack notifications use incoming webhooks to deliver messages to a Slack channel. Perfect for organizations that use Slack for internal communications.
**Setup:**
1. Go to your Slack workspace's **App Directory**
2. Search for and add **Incoming Webhooks**
3. Select the channel where you want notifications to appear
4. Copy the generated webhook URL
5. Paste the URL into the Slack Webhook field in the Notifications Hub
6. Click **Connect**
### Telegram
Telegram notifications provide real-time mobile updates through the Agora Telegram bot. This channel is particularly useful for receiving priority updates on the go.
**Setup:**
1. Click **Link Telegram** in the Notifications Hub
2. Click **Open Telegram** when the linking prompt appears
3. Complete the linking process in the Telegram app by interacting with the Agora bot
Once linked, your Telegram username will appear in the Notifications Hub, confirming the connection.
The linking URL expires after a few minutes. If it expires before you complete the process, simply request a new link.
### Browser Push / PWA
Browser push notifications deliver native notifications directly to your device through your browser. Unlike other channels, push notifications are **device-specific** - you'll need to enable them on each device where you want to receive notifications.
**Setup:**
1. Click **Enable browser notifications on this device**
2. Approve the browser permission prompt when it appears
3. Complete a quick signature to link this device
To disable push notifications on a device, return to the Notifications Hub from that device and click **Disable push on this device**.
## Notification Categories
Notifications are organized into categories based on governance activity. Each category contains specific event types that you can enable or disable independently.
### Forums
Stay engaged with community discussions. Forum notifications include:
* **Comment on Engaged Discussion** - Comment on discussion you created or commented in
* **Comment on Watched Discussion** - Comment on discussion you're watching
* **New Discussion in Watched Category** - New topic in a category you subscribe to
* **Reaction on Your Post** - Someone reacted to your comment
* **Direct Reply to Your Comment** - Someone replied directly to your comment
* **Your Topic Was Upvoted** - Someone upvoted your discussion topic
### Proposals
Never miss a vote. Proposal notifications include:
* **New Proposal Published** - When a new governance proposal is published
* **Proposal Reminder (24h)** - Reminder 24 hours before voting ends
* **Proposal Reminder (1h)** - Reminder 1 hour before voting ends
### Grants
Track grant program activity. Grants notifications include:
* **Grant Application Submitted** - A new grant application was submitted
* **Grant Application Accepted** - A grant application was accepted
* **Grant Application Rejected** - A grant application was rejected
**Grants notifications are permission-gated.** Only users with the appropriate grants management permissions can view and configure Grants notifications. If you don't see the Grants category in your notification preferences, your connected wallet does not have the required access.
Contact your DUNA Administrator or Grant Manager to grant you the appropriate permissions. They will need your wallet address.
See the Permissions & Access Control section below for more info.
## Permissions & Access Control
Certain notification categories are restricted to users with appropriate permissions. This ensures that sensitive governance information is only delivered to authorized individuals.
For example, Grants notifications are permission-gated and only visible to users with grants management permissions. If you don't see a specific category in your notification preferences, your connected wallet may not have the required access for that category.
Permission-gating helps maintain confidentiality and ensures that sensitive information is only shared with the right people. Once your wallet is granted the necessary permissions, the restricted category will automatically appear in your Notifications Hub.
***
## Get Started
Configuring your notification preferences takes just a few minutes and ensures you never miss the governance activity that matters to you. Whether you prefer the immediacy of Telegram, the visibility of email, or the integration of Slack and Discord, the Notifications Hub meets you where you already work.
# Security Best Practices for Onchain Execution
Source: https://docs.agora.xyz/onchain-execution-guide
A checklist for securing onchain execution in the Agora Governance system
Moving assets into onchain governance is a major step toward decentralization, but it also introduces new security challenges. Poorly secured governance systems can be exploited by malicious actors, putting treasury funds and protocol integrity at risk. This guide outlines the best practices for ensuring a secure and resilient transition to onchain execution.
## Review Governance Roles
Before moving assets onchain, ensure that all governance roles are structured with security in mind:
* **Multisigs for Admin and Manager Roles:** Use multi-signature wallets (e.g., Gnosis Safe) for high-privilege roles, ensuring no single actor has unilateral control.
* **Separation of Powers:** Avoid assigning excessive privileges to a single address. Distinct roles should be responsible for proposal creation, execution, and administrative overrides.
* **Use Hardware Wallets:** Ensure that key signers use hardware wallets such as Ledger, Trezor, or Keystone to protect against phishing attacks and key compromise. Hardware wallets provide an extra layer of security by keeping private keys offline and requiring physical confirmation for transactions.
## Establish a Security Council
Establishing a Security Council for onchain governance is about creating a robust safety valve that protects the system without undermining its decentralized nature. Here’s how we recommends approaching it:
**Build an Emergency Veto Mechanism:**
The council functions as a rapid-response team against malicious or exploitative proposals. By incorporating automated triggers that flag unusual or high-risk proposals alongside manual overrides, you can ensure that any red flags can be addressed immediately. All of Agora's standard governance contracts include a timelock to ensure that there is a delay between proposal creation and execution, but having the right people in the council can help you respond to unexpected events with confidence.
**Make it Transparent:**
Trust begins with clear accountability. Every council member should have a verifiable onchain identity, ensuring that responsibilities are visible to the entire community. Regular rotation or term limits can further prevent power from consolidating, keeping fresh perspectives in the mix. By making all actions and decisions public, we create an environment where accountability is the norm, and the community can directly see how security measures are being upheld. Running elections for the council is a good way to ensure that the council is representative of the community. No matter how you choose to select your council members, make sure to make the process transparent and verifiable using onchain governance proposals via Agora, using Discourse, or a similar forum.
**Limited Authority:**
While the council is empowered to veto harmful proposals, its role must be strictly defined to prevent it from becoming a centralized policymaker.
**Integrating Checks and Balances:**
To maintain the integrity of the governance system, decisions made by the council must be subject to independent oversight. Implementing post-veto audits allows us to assess the justification of each intervention, while community appeal mechanisms give stakeholders a way to contest decisions that seem out of line with broader interests. An immutable, public log of veto actions and their reasons not only builds transparency but also serves as a learning tool to continuously refine and improve our governance protocols.
**Who should be in the Security Council?**: The Security Council should be a group of trusted individuals who are responsible for the security of the protocol. They should be diverse and represent different parts of the community. They should be able to make decisions quickly and efficiently. They should be able to communicate with the community and the team. They should be able to make decisions that are in the best interest of the protocol.
Together, these measures create a balanced security mechanism that empowers the community while providing essential safeguards. If you don't have a Security Council, we recommend you start with a small group of trusted individuals and iterate from there.
## Walk Before You Run
Transitioning to onchain execution should be a deliberate, measured process that prioritizes both security and confidence. We take a cautious approach by emphasizing thorough testing, incremental exposure, and clear communication with all stakeholders to build and maintain trust:
**Start with Test Transactions:**
Before committing significant assets, we begin with small, non-critical token movements through the governance process. These initial test transactions serve as a practical validation of our security assumptions and most importantly, build trust with the community and allow you and your team to iterate on the process before committing more significant resources.
**Progressive Fund Transfers:**
Rather than transferring the entire treasury into the timelock in one go, we advocate for a gradual increase in exposure. By moving funds incrementally, we create checkpoints that allow us to assess the stability and security of the process at each stage. This step-by-step strategy minimizes risk and provides the flexibility to pause or adjust the transition if any anomalies or vulnerabilities are detected.
**Community Awareness:**
Ensuring that delegates, token holders, investors, the community, and your team understand the process is key to building trust. We recommend investing in clear, comprehensive communication that explains the risks, benefits, and operational details of onchain execution. By keeping the community informed and engaged, we foster a collaborative environment where feedback is encouraged, and everyone has a clear picture of how the transition is unfolding. This transparency not only builds confidence but also equips the community to actively participate in the evolution of our governance framework.
This measured approach not only safeguards assets but also reinforces our commitment to a transparent, community-driven process that evolves with both caution and innovation and most importantly, builds trust with the community and gives your team the confidence to move forward.
## Implement Transaction Monitoring
Implementing robust transaction monitoring is critical to maintaining transparency and security in onchain governance. By leveraging tools like [OpenZeppelin Defender](https://www.openzeppelin.com/defender), we can track transactions in real time as they progress through the proposal lifecycle, ensuring every step is both visible and verifiable.
**Automated Alerts:**
Automated alerts serve to notify you and your security team immediately when transactions are queued or executed. This real-time feedback allows for swift action in response to any strangeness, reducing the window for potential issues. Quick notifications ensure that any deviation from expected behavior is addressed before it can impact the system significantly.
**Anomaly Detection:**
Advanced anomaly detection mechanisms enable you to flag unusual patterns such as unexpectedly large transfers or irregular proposal execution times. By catching these outliers early, we can investigate and mitigate potential vulnerabilities before they escalate. This proactive approach adds an extra layer of security, ensuring that any deviation from normal operations is promptly scrutinized and resolved.
Agora will be monitoring all transactions in real time and will alert you and your security team if any anomalies are detected, but it's a good idea to have your own team to setup and review the transactions as well. When it comes to monitoring and securing onchain transactions, the more eyes the better.
## In-house or additional contract audits
Even though Agora's governance contracts have been audited by leading firms, engaging additional auditors can offer further peace of mind. Leveraging experts such as [OpenZeppelin](https://www.openzeppelin.com/security-audits), [Trail of Bits](https://www.trailofbits.com/), or [Hashlock](https://hashlock.com/) are ones that we've worked with and trust.
**Internal Review:**
Complementing external audits, your engineering team should conduct thorough internal reviews to ensure familiarity with the governance contracts. This allows you to fully understand the inner workings and potential edge cases that might not surface during external audits. By proactively examining the contracts you empower yourself to quickly address issues and ask questions that you might not have thought of otherwise.
## Crisis Response Protocols
Governance security is not just about prevention, it’s also about response. Prepare runbooks and rehersals that outline steps for addressing:
* **Malicious Proposals:** Step-by-step guide for emergency vetoes.
* **Governance Attacks:** Processes for escalating incidents to security teams and stakeholders.
* **Contract Exploits:** Protocol for deploying emergency patches or rolling back transactions where feasible.
It's hard to give a one size fits all approach to crisis response protocols as each protocol is different and will have different needs. The best practices are to make the process as transparent as possible and to get buy in from your community and security teams. Optimism has set the standard for open and transparent crisis response protocols with their [Superchain Ops](https://github.com/ethereum-optimism/superchain-ops) repo. It's a great resource for getting ideas and best practices for your own crisis response protocols.
## Communicate the Transition Plan
Governance is as much about community trust as it is about security. A poorly communicated transition can lead to panic or misinformation. Ensure that you:
**Announce Plans Clearly:** Use Discord, Discourse, or governance forums to explain the transition timeline and security precautions.
**Set Expectations:** Detail how voting and execution will work, and what safeguards are in place.
**Provide Ongoing Updates:** Governance security is an ongoing process—keep the community informed of audits, incident reports, and improvements.
## tldr;
Transitioning to onchain execution is a powerful step toward decentralization, but it requires a robust security strategy. Remember that most security attacks are not done by attacking the protocol but by compromising the people behind the protocol. Investing in your security team and processes will pay off in the long run. By implementing these best practices and even talking through these with your Agora Governance Consultant, you can build a strong foundation for your onchain governance.
Ensure your onchain governance is secure before executing high-value transactions.
# Governance Quickstart
Source: https://docs.agora.xyz/quickstart
Deploy your own version of Agora to govern your DAO or protocol in minutes.
## Choose Your Governance Path
Every DAO's journey to full permissionless, trustless governance is unique. While the end goal might be a fully self-sustaining, onchain community, many start with more controlled environments and gradually open up. Agora supports every stage of this evolution:
* **Tight Control to Start**: Begin with a restrictive configuration—set high proposal thresholds or require proposals to originate from a designated manager role. This ensures stability, refined decision-making, and controlled growth in your early stages.
* **Incremental Opening of Access**: As your community gains confidence and experience, use Agora's tools to systematically lower thresholds and expand proposal rights. Transition decision-making power from a trusted core to the broader community.
* **Progressive Onchain Expansion**: Start with low-risk onchain actions—such as updating parameters or distributing small grants—to build trust and validate your governance framework. Gradually expand to encompass treasury management, infrastructure upgrades, and critical parameters.
Not sure where to start? We recommend starting with more controls, as it’s always easier to progressively decentralize later.
## Deploy your token
When implementing governance with Agora, your token strategy is foundational. Choosing the right approach depends on your DAO’s current setup, objectives, and long-term vision. Here are the options:
#### **Using an Existing Token**
If you already have an ERC20 token or NFT, you’re ready to integrate Agora’s governance framework seamlessly. This “plug and play” approach allows you to immediately empower your community with onchain voting and decision-making, leveraging the token’s established utility and familiarity.
**Advantages:**
* Fast integration with Agora’s governance system.
* Leverages an existing, recognized token within your ecosystem.
* Reduces development time and cost by skipping token creation.
**Considerations:**
* Ensure your token aligns with your governance goals (e.g., holder distribution and utility).
* Assess whether the current token design supports advanced features like delegation or partial delegation.
#### **Deploying a New Token**
For DAOs that need a fresh start or additional flexibility, deploying a new token with Agora ensures a custom fit for your governance needs. Agora simplifies token creation and deployment, supporting both ERC20 and NFT standards.
**Advantages:**
* Tailor the token to align with your DAO’s vision and governance requirements.
* Seamlessly integrate features like partial delegation or specific voting thresholds.
* Opportunity to design a tokenomics model optimized for your community.
**Considerations:**
* Developing a new token requires thoughtful planning around distribution, utility, and compliance.
* Launch timing is critical—ensure readiness for the transition to governance.
#### **Facilitating Token Distribution with Agora Token Launch**
[Agora Token Launch](/launch) provides a structured and compliant way to distribute tokens, catering to different community needs and regulatory requirements. Choose from the following options:
1. **MiCA-Compliant Initial Coin Offering (ICO):**
* Launch your token in compliance with EU regulations for transparent and secure distribution.
* Attract contributors with a legally sound framework.
2. **Token Claims:**
* **Soft Claim**: Your DAO handles the gas fees, ensuring a seamless claim process for participants.
* **Hard Claim**: Users pay their own gas fees to claim tokens, reducing cost burdens for the DAO.
* **Mixed Claim**: Combine both methods to offer flexibility for your community.
**Advantages:**
* Clear, structured distribution methods tailored to your DAO’s needs.
* Builds trust and accessibility with compliant and efficient launch mechanisms.
* Flexibility to adapt to varying levels of user engagement and technical expertise.
**Considerations:**
* Token claims require precise configuration to ensure smooth execution.
* Compliance and transparency are critical—errors can damage trust and governance credibility.
### Final Advice
Token launches are high-stakes, one-time events. A poorly planned launch can undermine your DAO’s trust and governance framework. If you’re unsure which strategy suits your needs, it’s best to consult with Agora’s governance experts before proceeding. Together, we’ll ensure your launch is optimized for success.
Talk to one of our governance experts to learn how Agora can help you lauch
your token to start your governance on the right foot.
***
## Deploy the Governor
This section assumes that you have a deep understanding of solifity, smart contracts and deployments.
First, clone the Agora Governor repository to your local environment:
```bash theme={null}
git clone https://github.com/voteagora/agora-governor.git
cd agora-governor
```
### Install Foundry
```bash theme={null}
curl -L https://foundry.paradigm.xyz | bash
foundryup
```
### Install dependencies
```bash theme={null}
forge install
```
### Configure the Environment
```bash theme={null}
cp .env.example .env
```
Edit the `.env` file to include your specific configuration, such as:
* Private key for the deployment wallet
* RPC URL for the Ethereum node you’ll connect to
* Contract-specific settings
### Build the contracts
```bash theme={null}
forge build
```
Check for any compilation errors and resolve them before proceeding.
### Write the Deployment Script
```bash theme={null}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "forge-std/Script.sol";
import "../src/AgoraGovernor.sol";
contract DeployAgoraGovernor is Script {
function run() external {
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
vm.startBroadcast(deployerPrivateKey);
IVotesUpgradeable votingToken = IVotesUpgradeable(vm.envAddress("VOTING_TOKEN_ADDRESS"));
address admin = vm.envAddress("ADMIN_ADDRESS");
address manager = vm.envAddress("MANAGER_ADDRESS");
TimelockControllerUpgradeable timelock = TimelockControllerUpgradeable(vm.envAddress("TIMELOCK_ADDRESS"));
IProposalTypesConfigurator proposalTypesConfigurator = IProposalTypesConfigurator(vm.envAddress("PROPOSAL_CONFIGURATOR_ADDRESS"));
AgoraGovernor governor = new AgoraGovernor();
governor.initialize(votingToken, admin, manager, timelock, proposalTypesConfigurator, new IProposalTypesConfigurator ProposalType
vm.stopBroadcast();
}
}
```
### Deploy the contracts
```bash theme={null}
forge script script/DeployAgoraGovernor.s.sol --rpc-url --broadcast --verify
```
Replace `` with your Ethereum node URL. If deployment verification is needed, ensure you’ve configured an Etherscan API key in your `.env` file.
### Verify the deployment
1. Check the deployed contract addresses in the output of your script.
2. Use a blockchain explorer (e.g., Etherscan) to verify the contracts were deployed correctly.
3. Interact with the contract’s methods to confirm its initialization, such as retrieving the votingToken or admin address.
## Next Steps
Now that your Agora Governor is deployed, it’s time to bring it to life with a client that interacts with your governance contracts. You have two options:
1. Use Agora’s open source client as a starting place
Visit [Agora Next](https://github.com/voteagora/agora-next) to access a pre-built client designed to seamlessly work with Agora Governor. This client provides an open source solution to serve your governance app, complete with core features like proposal creation, voting, and results visualization. It’s the fastest way to get started and ensures you’re using a trusted, tested solution. You will need to modify the data endpoints and roll your own database, but if you are a skilled developer and willing to put in the time you can make it happen with this as a starting point. We accept PRs too 🥳.
2. Roll Your Own Custom Client
If you prefer building your own governance interface, all data emitted by Agora Governor contracts can be indexed and stored by you. Use this data to design and develop a bespoke governance app tailored to your community’s unique needs. With Agora, you have full flexibility to innovate and create something amazing.
While both options are accessible, setting up a governance client can be complex. If you want a quick and smooth experience, reach out to our team—we’d love to help you get up and running with the Agora Next client or assist you in creating your own solution.
# Scoped Proposal Types
Source: https://docs.agora.xyz/scopes
Learn how to define secure, limited proposal types in a DAO using scopes.
# Scoped Proposal Types
Scoped Proposal Types are a powerful tool to add limits on specific actions a proposal in a DAO can take, while forcing specific contract calls to flow through specific proposal types. Instead of allowing a contract call with any value parameter, you can define **specific, safe actions** that certain proposal types are allowed to perform. Additionally, once a scope is defined, other proposal types are blocked from making any similar call.
***
## What Is a Proposal Type?
A **Proposal Type** is a template that defines:
* **Voting rules**: quorum and approval thresholds
* **Name and description** of the type
* **Module** (optional): a contract that can exclusively use this type
* A list of **Scopes**: rules for what this proposal is allowed to do
***
## What Is a Scope?
A **Scope** is a rule that says:
“If this proposal type proposes a transaction that uses a specific contract and function, then the inputs must match specific conditions. Additionally, if a rule exists, no other proposal type can propose a transaction with the same contract and function.”
Each scope is bound to:
* A **contract address**
* A **function selector** (e.g. `transfer(address,uint256)`)
* An optional set of **parameter rules** (with comparisons)
Plus, there is a **description** for clarity.
***
## Example Use Case
Let’s say your DAO has a proposal type called **"Treasury Settings"**. You want it to update the budget, but not give it infinite budget.
1. **Create a Proposal Type:**
* Name: `Treasury Settings`
* Quorum: `10%`
* Approval Threshold: `60%`
2. **Assign a Scope:**
* Contract: `Treasury` contract
* Function: `updateBudget(uint256)`
* Rule: `newBudget < 1,000,000 tokens`
Any proposal of this type, would then be limited in it's ability to invoke that contract's function, below 1,000,000 token.
If not, it’s **invalid**.
Additionally, no other proposal type, could call `updateBudget` on that contract (unless an additional scope rule was made permitting it).
***
## Admin-Only Tools
Only the **Governor admin** or a **timelock** can manage scopes.
Available actions:
| Action | Who can do it? |
| -------------------- | ---------------- |
| Create proposal type | Admin / Timelock |
| Assign scope | Admin / Timelock |
| Disable scope | Admin / Timelock |
| Delete scope | Admin / Timelock |
***
## How Validation Works
When someone submits a proposal:
1. Each call is inspected
2. The contract + function is hashed into a **scope key**
3. If the key is allowed under the proposal type:
* Parameters are **decoded**
* Comparisons are **checked**
4. If everything passes, the proposal is valid
This system currently supports basic types only: `uint`, `address`, and `bytes32`.
***
## Limits
* Max **5 scopes per contract/function combo** for each proposal type
* Supported data types:
* `uint`
* `address`
* `bytes32`
***
## Summary
Scoped Proposal Types give DAOs granular control over what governance proposals are allowed to do. They help:
* Reduce the risk of rogue proposals
* Enable safe delegation to modules
* Scale governance safely as your DAO grows
By assigning clear scopes to proposal types, you create **permissioned governance**, without needing to trust proposal authors.
***
## Who Is This For?
* DAO **Governors** and **Admins**
* Protocol **Engineers**
* Contract **Module Builders**
* Anyone defining **safe proposal flows**
Scoped Proposal Types are a best practice for secure, maintainable DAO governance.
# Securing Your Governance
Source: https://docs.agora.xyz/security
Agora's commitment to security
Our philosophy is simple: prioritize security at every layer. From the transparency of our open-source code to carefully controlled voting strategies, our governance operating system is designed to safeguard against both technical exploits and social engineering attacks.
## Open Source Code
We believe that transparency is a cornerstone of security. All core contracts, modules, and upgradeable extensions are fully open source. This allows the broader community—developers, auditors, and security researchers—to examine, test, and validate the integrity of our code.
Open source development also fosters a rich ecosystem of contributors and peer reviewers, ensuring that bugs and vulnerabilities are more likely to be discovered and addressed quickly.
[Source code for Agora App →](https://github.com/voteagora/agora-next)
[Source code for Agora Governor →](https://github.com/voteagora/agora-governor)
## Scoped Voting Outcomes
Agora's scoped voting strategies ensure that critical proposals require higher quorums and approval thresholds. By enforcing targeted rules for different proposal types, destructive or high-stakes actions (like treasury withdrawals or protocol upgrades) can be set to automatically demand broader community consensus. These safeguards help contain potential damage if a malicious proposal slips through initial review.
## Veto Mechanisms and Admin Roles
### Governor Admin
A designated admin can cancel or veto proposals under specific circumstances. This role can be reassigned or removed through governance itself, providing a failsafe without permanently centralizing control.
### Timelock
We encourage protocols to use a timelock controller that enforces a waiting period between proposal approval and execution. During this period, the community and stakeholders have time to react and prevent rushed or malicious actions.
## Thoughtful Quorum and Approval Thresholds
Ensuring that enough voting power supports a proposal is critical for legitimacy and security. Agora's default settings are designed to strike a balance: neither too low (vulnerable to rapid or under-the-radar approvals) nor too high (prone to governance gridlock). However, each DAO can—and should—tune these parameters over time to match the evolving size and maturity of its community.
## Contract Audits
Ask us for our detailed audit reports.
## Bug Bounty Program
Coming soon!
# Voting Types
Source: https://docs.agora.xyz/voting-types
Understanding proposal voting mechanisms and requirements
Agora supports multiple types of proposals to accommodate different governance needs. Each proposal uses both a **voting type** (how votes are cast) and a **proposal type** (which defines quorum and approval thresholds).
## Core Voting Types
### Basic Voting
The standard voting mechanism where participants vote "for", "against", or "abstain". A proposal passes when:
* Total votes (for + against + abstain) exceed quorum.
* For votes exceed the approval threshold percentage of (for + against) votes
### Approval Voting
Allows voters to choose among multiple options. The proposal passes if:
* Quorum is met
* Options are approved based on predefined approval criteria. For example, "top X of Y options succeed" ([see example](https://vote.optimism.io/proposals/31049359136632781771607732021569520613741907517136820917236339424553298132866)), "grants are issued in order until there is no more budget remaining", "any options with X support or greater resolve to true", or combinations of the above ([see example](https://vote.optimism.io/proposals/21837554113321175128753313420738380328565785926226611271713131734865736260549)).
### Optimistic Voting
A social signaling mechanism where proposals automatically pass unless significant opposition emerges:
* Automatically passes unless 12% vote against
* Cannot include on-chain transactions
* Used primarily for social consensus
### Snapshot Integration
* Fully off-chain voting imported from Snapshot
* Maintains compatibility with existing Snapshot proposals
## Proposal Types
## Understanding Proposal Configuration
Each proposal combines:
1. **Voting Type**: Determines how votes are cast (basic, approval, optimistic)
2. **Proposal Type**: Sets the quorum and approval threshold requirements
## Key Terms
### Quorum
The minimum voting weight required for a valid proposal, ensuring sufficient participation. Example: 400,000 OP tokens.
### Approval Threshold
The percentage of supporting votes needed versus opposing votes. Example: With 50% threshold:
* Requires (for)/(for + against) > 50%
* Must also meet quorum requirement