[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GY1AS08F0FFK22VEMCSXDS":3,"skill-same:01M6GY1AS08F0FFK22VEMCSXDS":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M6GY1AS08F0FFK22VEMCSXDS","compute-quorum-from-voting-supply",null,"Use when checking whether a proposal will reach quorum or explaining a Defeated result that seemed to pass. Computes quorum from governor parameters and vote tallies, not from a guessed percentage.","jiayaoqijia\u002Fcryptoskill","jiayaoqijia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1453879?v=4","01M6GMYTX7Q7S504VC6E756ENR","YQ","01M6GMYV1QKJ1CC75MTTGT9PR0",80,"MIT","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002F0xklen-compute-quorum-from-voting-supply\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002F0xklen-compute-quorum-from-voting-supply\u002FSKILL.md",[],[20,21,22,23,24,25,26,27],"voting","compute","supply","compute quorum from voting supply","use","proposal","result","when","2026-11-10 10:12:30",false,"---\nname: compute-quorum-from-voting-supply\ndescription: Use when checking whether a proposal will reach quorum or explaining a Defeated result that seemed to pass. Computes quorum from governor parameters and vote tallies, not from a guessed percentage.\n---\n\n# Compute quorum from voting supply\n\nA proposal fails either because it did not reach quorum or because against outvoted for — two different failures with two different fixes. Compute both from the governor's own numbers.\n\n## Procedure\n\n1. Read the quorum formulation. OpenZeppelin governor exposes:\n   `cast call $GOV \"quorum(uint256)(uint256)\" $BLOCK --rpc-url $RPC`\n   and the numerator\u002Fdenominator that produced it:\n   `cast call $GOV \"quorumNumerator()(uint256)\" --rpc-url $RPC`\n   `cast call $GOV \"quorumDenominator()(uint256)\" --rpc-url $RPC`\n2. Note that OZ quorum is a fraction of total supply (or `getPastTotalSupply(block)` at the snapshot block), not of votes cast. A 4% numerator on a 1e9 supply is a 40,000,000 token floor.\n3. Read the tally:\n   `cast call $GOV \"proposalVotes(uint256)(uint256,uint256,uint256)\" $ID --rpc-url $RPC`\n   which returns (againstVotes, forVotes, abstainVotes).\n4. Apply the governor's own rules, which differ by version:\n   - OZ `_quorumReached`: `forVotes + abstainVotes >= quorum`.\n   - Compound Bravo: quorum counts `forVotes + abstainVotes` (abstain can carry quorum without a majority).\n   - OZ `_voteSucceeded`: `forVotes > againstVotes` (strict).\n5. Worked example: supply 1e9, numerator 4, so quorum = 40,000,000. Tally for=30,000,000, abstain=5,000,000, against=2,000,000. Quorum is NOT reached (35M \u003C 40M), so the proposal is Defeated despite for>against.\n6. Recompute at the snapshot block used by `quorum`, since supply moves:\n   `cast call $TOKEN \"getPastTotalSupply(uint256)(uint256)\" $SNAPSHOT --rpc-url $RPC`\n\n## Pitfalls\n\n- Assuming quorum is a percentage of votes cast; in most governors it is a percentage of total supply, so low turnout fails even with unanimous support.\n- Reading `totalSupply()` now instead of `getPastTotalSupply(snapshotBlock)`; a mint or burn between the vote and the check changes the answer.\n- Counting abstain as support in sentiment summaries when the governor only counts it toward quorum, not toward `for > against`.\n- Mixing Bravo and OpenZeppelin formulas — they agree on quorum but Bravo's `quorumVotes()` is a fixed value read once, while OZ recomputes per snapshot block.\n- Treating Defeated as a rejection by voters when the cause was a quorum shortfall.\n\n## Verification\n\n    cast call $GOV \"proposalVotes(uint256)(uint256,uint256,uint256)\" $ID --rpc-url $RPC\n    # for+abstain >= quorum AND for>against => the proposal should read Succeeded\n\nPrint the quorum number, the tally, and the two boolean tests; if a Defeated proposal passes both, the snapshot block used is the suspect.\n","# Compute quorum from voting supply\n\nA proposal fails either because it did not reach quorum or because against outvoted for — two different failures with two different fixes. Compute both from the governor's own numbers.\n\n## Procedure\n\n1. Read the quorum formulation. OpenZeppelin governor exposes:\n   `cast call $GOV \"quorum(uint256)(uint256)\" $BLOCK --rpc-url $RPC`\n   and the numerator\u002Fdenominator that produced it:\n   `cast call $GOV \"quorumNumerator()(uint256)\" --rpc-url $RPC`\n   `cast call $GOV \"quorumDenominator()(uint256)\" --rpc-url $RPC`\n2. Note that OZ quorum is a fraction of total supply (or `getPastTotalSupply(block)` at the snapshot block), not of votes cast. A 4% numerator on a 1e9 supply is a 40,000,000 token floor.\n3. Read the tally:\n   `cast call $GOV \"proposalVotes(uint256)(uint256,uint256,uint256)\" $ID --rpc-url $RPC`\n   which returns (againstVotes, forVotes, abstainVotes).\n4. Apply the governor's own rules, which differ by version:\n   - OZ `_quorumReached`: `forVotes + abstainVotes >= quorum`.\n   - Compound Bravo: quorum counts `forVotes + abstainVotes` (abstain can carry quorum without a majority).\n   - OZ `_voteSucceeded`: `forVotes > againstVotes` (strict).\n5. Worked example: supply 1e9, numerator 4, so quorum = 40,000,000. Tally for=30,000,000, abstain=5,000,000, against=2,000,000. Quorum is NOT reached (35M \u003C 40M), so the proposal is Defeated despite for>against.\n6. Recompute at the snapshot block used by `quorum`, since supply moves:\n   `cast call $TOKEN \"getPastTotalSupply(uint256)(uint256)\" $SNAPSHOT --rpc-url $RPC`\n\n## Pitfalls\n\n- Assuming quorum is a percentage of votes cast; in most governors it is a percentage of total supply, so low turnout fails even with unanimous support.\n- Reading `totalSupply()` now instead of `getPastTotalSupply(snapshotBlock)`; a mint or burn between the vote and the check changes the answer.\n- Counting abstain as support in sentiment summaries when the governor only counts it toward quorum, not toward `for > against`.\n- Mixing Bravo and OpenZeppelin formulas — they agree on quorum but Bravo's `quorumVotes()` is a fixed value read once, while OZ recomputes per snapshot block.\n- Treating Defeated as a rejection by voters when the cause was a quorum shortfall.\n\n## Verification\n\n    cast call $GOV \"proposalVotes(uint256)(uint256,uint256,uint256)\" $ID --rpc-url $RPC\n    # for+abstain >= quorum AND for>against => the proposal should read Succeeded\n\nPrint the quorum number, the tally, and the two boolean tests; if a Defeated proposal passes both, the snapshot block used is the suspect.\n",{"name":5,"description":7},"main","3df1d0d67b30ff15236561f8c0f9f06d33f42dfd","skills\u002Fpayments\u002F0xklen-compute-quorum-from-voting-supply",17,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia","https:\u002F\u002Feth2030.com","Hardcore infra. Building @alt-research and applied cryptography.","2026-11-11 08:47:40",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add jiayaoqijia\u002Fcryptoskill --skill compute-quorum-from-voting-supply",{"tool":48,"command":49},"bunx","bunx skills add jiayaoqijia\u002Fcryptoskill --skill compute-quorum-from-voting-supply",{"tool":51,"command":52},"pnpm","pnpm dlx skills add jiayaoqijia\u002Fcryptoskill --skill compute-quorum-from-voting-supply","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002F0xklen-compute-quorum-from-voting-supply\u002FSKILL.md",true,[56,60,66],{"path":57,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":16},"LICENSE","许可证",1063,{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"SOURCE.md","REFERENCE","参考文档",359,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002F0xklen-compute-quorum-from-voting-supply\u002FSOURCE.md",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"TRUST.auto.yaml",2217,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002F0xklen-compute-quorum-from-voting-supply\u002FTRUST.auto.yaml",[71,99,122,140,153,163],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":75,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":28},"01M712C436EQYE43342Q4E7GG1","recipe-performance","Diagnose a specific MetaMask user flow's real-app performance and Sentry critical-user-flow telemetry with deterministic mm-harness recipes. Use for CUF boundaries, cold\u002Fwarm\u002Fbackground-resume behavior, latency regressions, lifecycle tags, duplicate or blocking network requests, long tasks, layout\u002Fpaint cost, screen redraws, React rerenders, or browser trace analysis where tests alone cannot prove the real app.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fmetamask-official-recipe-performance\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fmetamask-official-recipe-performance\u002FSKILL.md",[],[79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],"performance","recipe performance","recipe","mm","sentry","harness","app","deterministic","recipes","flow","cold","critical","analysis","tasks","react","browser","layout","screen","network","metamask",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":103,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":28},"01M70XT2F8A5CQZ81JBP98KSW3","mexc-spot-websocket","MEXC Spot WebSocket workflows for public streams, protobuf handling, depth maintenance, listen keys, and private streams without exposing API keys.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Fmncrftfrcnm-mexc-spot-websocket\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Fmncrftfrcnm-mexc-spot-websocket\u002FSKILL.md",[],[108,109,110,111,112,113,114,115,116,117,118,119,120,121],"mexc spot websocket","spot","websocket","api","workflows","public","listen","streams","depth","keys","for","api keys","maintenance","protobuf",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":103,"licenseFileUrl":126,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":28},"01M70XT0MBXN3WZY1BKN0CPNKR","mexc-spot-rest","MEXC Spot REST workflows for public data, signed account requests, orders, wallet\u002Fadmin actions, and secure signing without exposing API keys.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Fmncrftfrcnm-mexc-spot-rest\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Fmncrftfrcnm-mexc-spot-rest\u002FSKILL.md",[],[130,109,131,132,133,134,135,119,118,117,136,137,138,113,139,112,111],"mexc spot rest","REST","admin","signing","Wallet","requests","actions","secure","data","orders",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":103,"licenseFileUrl":144,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":28},"01M70XSYSVZ2N0N91XCAR2CAK0","mexc-futures-websocket","MEXC Futures WebSocket workflows for public streams, private account\u002Forder\u002Fposition streams, ping\u002Fpong, subscriptions, and depth maintenance.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Fmncrftfrcnm-mexc-futures-websocket\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Fmncrftfrcnm-mexc-futures-websocket\u002FSKILL.md",[],[148,149,110,150,151,120,118,152,116,115,113,112],"mexc futures websocket","futures","position","ping","subscriptions",{"skillNo":154,"name":155,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":156,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":28},"01M6H0ZWHVE5W04WG2DKQE2SQC","0xklen-version-and-refresh-sanctions-lists","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002F0xklen-version-and-refresh-sanctions-lists\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002F0xklen-version-and-refresh-sanctions-lists\u002FSKILL.md",[],[160,161,162],"refresh","0xklen version and refresh sanctions lists","version",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":167,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":28},"01M6H0Z28Q3R8J0S799GJQWXM3","verify-tests-cover-changed-lines","Use when a PR adds code that the existing suite may not exercise. Measures patch coverage — the share of newly changed lines hit by tests — before approving.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002F0xklen-verify-tests-cover-changed-lines\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002F0xklen-verify-tests-cover-changed-lines\u002FSKILL.md",[],[171,172,173,174,175,176,177,24,178,179,180],"tests","cover","verify tests cover changed lines","verify","coverage","pr","exercise","patch","code","share"]