Governance

circle-info

📋 Contract Overview

Property
Value

📁 File

src/Governance.sol

🔧 Type

Upgradeable UUPS Proxy

⚙️ Solidity

0.8.33

📜 License

MIT

circle-info

🎯 Purpose: Implements Built By DAO's V2.1 governance system with quadratic voting, 4× power ceiling, and recency-weighted activity.


🌟 Governance V2.1 Features

Feature
Description

📊 Quadratic Voting

Power = √(EQTBLT balance)

🔝 4× Power Ceiling

Maximum voting multiplier

📈 Rank Weighting

1.00×-1.25× by rank

⏱️ Recency Weighting

Recent activity weighted more

💰 Investor Multipliers

NFT-based, capped at 5×

🪙 Proposal Staking

2 BLTBY required


📋 Proposal System

📊 Proposal Structure

struct Proposal {
    uint256 id;
    address proposer;
    string title;
    string description;
    ProposalType proposalType;
    uint256 startTime;
    uint256 endTime;
    uint256 forVotes;
    uint256 againstVotes;
    uint256 abstainVotes;
    ProposalStatus status;
    bytes[] calldatas;
    address[] targets;
    uint256[] values;
}

🔧 Functions

📝 Create Proposal

Access: Any member with 2 BLTBY stake

Requirements

Requirement
Details

🎫 Membership

Must hold Membership NFT

🪙 Stake

Must have 2 BLTBY

Valid structure

Proper proposal format


🗳️ Voting Power Calculation

circle-info

Voting power combines multiple factors with a 4× maximum cap.


🔝 The 4× Ceiling

circle-exclamation
Scenario
Without Ceiling
With Ceiling

🐋 Whale with 1M EQTBLT

1000× base

4× base

📈 High-rank + high-balance

Unlimited

Capped at 4×

💰 Major investor

Could outweigh community

Limited


📊 Quadratic Voting

circle-check
EQTBLT Balance
Linear Power
Quadratic Power

100

100

10

1,000

1,000

~31.6

10,000

10,000

100

100,000

100,000

~316

Result: 100 members with 100 EQTBLT each have more power than 1 member with 10,000 EQTBLT.


⏱️ Recency Weighting

circle-info

Activity is weighted by recency—active members have more power.

Time Window
Weight

Last 30 days

100%

31-90 days

70%

91-180 days

40%

>180 days

20%


📜 Events & Errors


🔗 Contract Interactions

Contract
Interaction

Stakes for proposals

Reads balance for voting power

Verifies membership, reads rank

Gets rank-based weights

Gets recency multipliers

Executes approved withdrawals


chevron-right💻 Integration Exampleshashtag

Creating a Proposal

Voting

Checking Power


Treasurychevron-righthttps://github.com/urbanarray/builtbydocs/blob/main/docs/developers/contracts/voting-registry.mdchevron-righthttps://github.com/urbanarray/builtbydocs/blob/main/docs/developers/contracts/activity-tracker.mdchevron-rightDAOMembershipNFTchevron-rightGovernance V2.1chevron-rightVoting Powerchevron-right

Last updated