Skip to content

fix(dao): show LightChain's real staked-excluded quorum, not '3% of supply'#148

Merged
marinom2 merged 1 commit into
mainfrom
fix/dao-quorum-display
Jul 1, 2026
Merged

fix(dao): show LightChain's real staked-excluded quorum, not '3% of supply'#148
marinom2 merged 1 commit into
mainfrom
fix/dao-quorum-display

Conversation

@marinom2

@marinom2 marinom2 commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Problem

The governance header shows Quorum: 3% of supply, which is wrong for LightChain. The LightChainGovernor overrides quorum() to use INativeVotes.getTotalVotingPower (the staked-excluded voting supply), not getPastTotalSupply. So quorum is 3% of the votable base - worker and validator stake are excluded. Verified on-chain: quorum = 298,972,950 LCAI = 3% of (getPastTotalSupply 9,966,500,000 - 735,000 net worker stake); the raw 10B supply also excludes ~33.5M validator bonded stake.

Fix

  • app/api/dao-overview: for LightChain, also read the live quorum(clock-1) + getTotalVotingPower(clock-1) and return quorumWei, votableSupplyWei, stakeExcludedFromQuorum.
  • treasury-bar.tsx: show the real quorum amount (~299M LCAI) with a "3% of the votable supply (staked LCAI excluded)" hint instead of "3% of supply". Ethereum path unchanged (falls back to the % label).

Data source is the same registries the SDK's NativeGovernance reads (lightnode-sdk 0.21.0). Typecheck clean for both changed files.

…upply'

The Governor overrides quorum() to use INativeVotes.getTotalVotingPower (the
staked-excluded voting supply), so quorum is 3% of the votable base, not 3% of
raw supply - worker and validator stake are excluded. The overview API now reads
the actual quorum() + getTotalVotingPower() for LightChain, and the header shows
the real threshold (~299M LCAI) with a '3% of the votable supply (staked LCAI
excluded)' hint instead of the misleading '3% of supply'.
@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightnode Ready Ready Preview, Comment Jul 1, 2026 8:10am

Request Review

@marinom2 marinom2 merged commit 298a3be into main Jul 1, 2026
3 of 5 checks passed
@marinom2 marinom2 deleted the fix/dao-quorum-display branch July 1, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant