Governance / DeFi Infrastructure2024 / Completed / Open Source

Multi-Tier DAO Treasury

Quadratic Voting & Dynamic Quorum Capital Allocation

Source code
01 / Context

The engineering problem.

Whale token holders routinely dominate flat token governance, allowing malicious actors to pass single-transaction treasury drains with low voter turnout.

Overview

A governance protocol designed to govern institutional treasury assets. Replaces naive 1-token-1-vote systems with square-root quadratic voting algorithms and tiered expenditure thresholds to safeguard DAO funds against hostile governance takeovers.

Governance Tiers
3 Tiers
Voting Model
Quadratic (√n)
Timelock Range
0 - 48 Hours
SolidityFoundryOpenZeppelinAccessControlQuadratic Voting
02 / System design

Tiered Proposal Controller & Quadratic Tally Engine

Routes expenditure proposals to different validation pipelines based on fund request magnitude.

Architecture / Governance / DeFi Infrastructure
Multi-Tier DAO Treasury: select an annotation below to inspect the architecture.SMALL3 DAYSLOW QUORUMMEDIUM7 DAYS20% QUORUMLARGE14 DAYS40% QUORUMPROPOSAL CONTROLLER
[01]

Tier 1 (Small Grants): Low quorum, 3-day vote duration, instant execution upon passage.

03 / Adversarial defense

Technical challenges & mitigations.

Gas-Efficient Integer Square Root on EVM

Implemented the Babylonian square root method in assembly to compute quadratic voting weights with minimal gas overhead.

Vote Sybil Resistance Within Smart Contracts

Coupled voter registration with snapshot block balance verifications, preventing flash-borrowing tokens immediately before proposal creation.

04 / Implementation

Key features.

  • 01Multi-tiered spending governance (Small, Medium, Major capital allocations)
  • 02Quadratic voting calculation engine mitigating plutocratic dominance
  • 03Timelocked execution queues allowing community intervention on suspicious votes
  • 04Foundry fuzz testing suite confirming invariant solvency across vote outcomes
Next study / 06

Auth-Governed Secure Vault