feat(web): DAO who-decides - voter participation + delegate power leaderboard#73
Merged
Merged
Conversation
…eaderboard Surface governance concentration the official DAO doesn't show: who holds the voting power and who actually shows up. - New dao-voters route scans the governor's VoteCast events into a voter participation leaderboard (votes cast + For/Against/Abstain breakdown) and the vote-token's DelegateVotesChanged events into a delegate voting-power leaderboard, plus headline stats: total votes, unique voters, delegate count, and top-5 power concentration. Live Ethereum: 4,854 votes from 909 voters across 127 delegates, top 5 control 38%. - Generalized the chunked event scanner in lib/dao-governor-scan (findEvents); findGovernorEvents is now a thin wrapper over it. - Pure aggregation in lib/dao-votes, unit-tested (+6). Read-only; the panel links each address to the explorer.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DAO intelligence tool #1: governance concentration the official DAO doesn't show.
What
/api/dao-votersscans the governor's VoteCast events into a voter participation leaderboard (votes cast + For/Against/Abstain split) and the vote-token's DelegateVotesChanged events into a delegate voting-power leaderboard, plus headline stats: total votes, unique voters, delegate count, and top-5 power concentration.lib/dao-governor-scan(findEvents);findGovernorEventsis now a thin wrapper.lib/dao-votes, unit-tested (+6). Read-only; every address links to the explorer.LightChain degrades cleanly (0 votes; the native predeploy may not emit
DelegateVotesChanged).Verification
tsc/next build/ ESLint clean, 491/491 tests. Verified live against the Ethereum governor.