Skip to content

governance-primitives

@0xvitalii@0xvitalii17 charts

Analyzed Primitives:

  • Compound: Alpha and Bravo versions Docs, Proposals, Read, Github
  • OpenZeppelin (OZ) Governor: Alpha and Bravo versions
  • Aave Governance
  • Uniswap
  • MakerDAO’s DSChief.

This dashboard serves as a vital tool for understanding the dynamics of on-chain governance and in the decentralized ecosystem.


Proposers

AAVE Governance

FAQ

Governance token number of holders: 168,752

Governance tokens market cap: $1,775,552,310

AAVE

Leading DeFi protocol that enables users to lend and borrow cryptocurrencies in a trustless, transparent, and decentralized manner. Through its on-chain governance system, Aave allows AAVE token holders to participate directly in the decision-making processes that shape the protocol’s future. This includes voting on proposals related to protocol upgrades, asset listings, and risk parameters, ensuring that the community has a pivotal role in the platform's evolution.

Enter supported blockchains: arbitrum, avalanche_c, base, blast, bnb, bob, celo, degen, ethereum, fantom, gnosis, linea, mantle, mode, nova, optimism, polygon, scroll, sei, zkevm, zksync, zora

Default blockchain is Ethereum.

Enter desired amount of month to query data. 3, 6, 12, 36, etc. Default amount of month is 12.


This section is based on currated by Dune dataset DAO VOTES: https://dune.com/data/dao.votes

We can't change or modify it, and the selection of blockchains is also limited. I've extracted all the useful data into charts, but it's available as-is with no ability to modify or advance.

Table #1 - OpenZeppelin Governor Deployed Contracts

This query identify and tracks contracts with "ProposalExecuted" events, which is used in OpenZeppelin Governor smart contracts. API description of the "VoteCastWithParams" event - https://docs.openzeppelin.com/contracts/4.x/api/governance#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-

Blockchains: Ethereum(from May 2022), Arbitrum, Avalanche, Gnosis, Optimism, BNB, Fantom, Goerli, Polygon, Celo, Base, ZkSync, Zora. DatasetDescription

Key Insight: There are 39 instances of OpenZeppelin Governor have been deployed across various blockchains since 2022.

On-Chain Governance Primitives Analysis Dashboard

Dashboard explores the usage and impact of on-chain governance primitives, providing valuable insights into the most prevalent governance mechanisms in DeFi. The dashboard identifies and categorizes various governance primitives, including their code repositories and version history on the Ethereum mainnet and other EVM chains (Optimism, Arbitrum One, Polygon, Base).

Data Insights:

  1. Amount of vote txs executed per week, per month, per quarter, per year in the last 3 years. This is a proxy of how much volume of work these instances generate.
  2. Who (deployer addresses) and how many different actors submit txs for execution
  3. Heuristic to identify who owns the primitive, gov token transfers

Compound

Leading DeFi protocol that allows users to lend and borrow cryptocurrencies without intermediaries. By pooling assets into smart contracts, Compound enables users to earn interest on their deposits and take out loans against their crypto holdings.

On-chain governance model empowers the community to influence key aspects of the platform, including interest rate models, new asset listings, and protocol upgrades. The governance process is facilitated by the COMP token, Governor Bravo contract and Timelock.


This section is focused on proposals and proposers. Querying data from Raw Logs tables, like ethereum.logs.

The logs table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:

  • topic list: a list of 0 to 4 32-byte data topics. Topic0 is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
  • data: contains non-indexed data. That is why our WHERE statement is like that "topic0 = 0x7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e0" It means WHERE event "ProposalCreated" was triggered. https://docs.dune.com/data-catalog/evm/ethereum/raw/logs

Most queries execute with the selected blockchain and the specified number of months entered, unless different parameters are explicitly stated in the title.

OpenZeppelin Governance

Widely used, modular, and extensible framework designed to implement on-chain governance systems for blockchain protocols. It provides a robust set of smart contracts that can be customized to fit the specific needs of different projects, allowing developers to create governance structures that are secure, transparent, and decentralized.

OpenZeppelin Governance is used by numerous blockchain protocols across different segments of the industry due to its reliability and ease of integration. Its adoption is widespread, particularly among projects that require a solid governance foundation without building from scratch.

A Governor contract, used by teams such as The Graph, Uniswap, ENS, Gitcoin, Nouns, and Compound, makes it possible to set up a system where multiple parties can vote on proposed changes to a contract, with the aim of reaching a consensus on the best course of action.

How to Identify the Governance Token of a Specific DAO

Unfortunately, there’s no token name available anywhere in the functions or events of the governance contracts. Additionally, there isn’t a table on Dune that establishes any relationship between a token and its associated project.

To identify the governance token for a specific DAO, enter the DAO's name followed by the word "governance" into Google. The first result is typically the governance website, which usually provides detailed information on the token used for governance. Note that there is no token name specified within the functions or events of governance contracts, nor is there a Dune table linking tokens to projects.