Governance Tools Guides
  • overview
    • Core Governance Tools
      • Access the Core Governance Tools
    • System status
    • What is Cardano GovTool?
    • What is the Constitutional Committee Portal?
    • Community Governance Tools
  • CARDANO GovTool
    • Using Govtool
      • Getting started
        • Compatible Wallets
        • Connect your wallet to GovTool
        • The GovTool Dashboard
      • Direct Voting
      • DReps
        • Register as a DRep
        • Retire as a DRep
        • DRep error conditions
      • Delegating
        • Delegate to a DRep
        • Abstain from Every Vote
        • Signal "No Confidence" on Every Vote
      • Governance Actions
        • Types of Governance Actions
          • Motion of No Confidence
          • Update Committee or Threshold or term limits
          • New Constitution or Guardrails Script
          • Hard Fork Initiation
          • Protocol Parameters changes
          • Treasury Withdrawal
          • Info Action
        • View Governance Actions
        • Propose a Governance Action
        • Vote on Governance Actions
          • Change your Vote
      • Storing Information offline
      • Cardano Budget Proposals
    • FAQs
      • How Governance Action Vote Totals are Calculated in GovTool
      • Ways to use your Voting Power
      • Direct Voter vs DRep
      • What does it mean to register as a DRep?
      • What is a Governance Action?
      • What is a DRep?
      • What is Voting Power?
      • Bootstrapping phase
  • Constitutional Committee portal
    • Constitutional Committee Portal Functions
      • Read the Interim Constitution
      • Compare Constitution Iterations
      • View Interim Constitutional Committee Members
      • View Interim Constitutional Committee Members have votes
  • Bugs or Feature suggestions
    • How to suggest a feature or submit an idea
    • How to submit a bug
  • Participate in development
    • Overview
    • How to participate
    • Proposal Pillar API
      • Access
    • Governance Tools Repositories
  • Legal
    • Private Policy
    • Terms of Use
Powered by GitBook
On this page
  • DRep Vote Total Equation
  • Intro definitions
  • For a governance action
  • DRep Vote Total Implementation
  • Example
  • SPO Vote Totals
  1. CARDANO GovTool
  2. FAQs

How Governance Action Vote Totals are Calculated in GovTool

PreviousFAQsNextWays to use your Voting Power

Last updated 3 months ago

DRep Vote Total Equation

GovTool aims to show vote total values which help the user gauge likelihood of ratification of an action.

Intro definitions

  • Active DRep stake = all the voting power of DReps within the active state

    • (This does not include any in-active DReps OR retired DReps)

  • Total Active Stake = Active DRep stake + auto no confidence stake

    • We do not include any abstain within this, as they are not part of ratification equation

For a governance action

Abstain Total

  • Total voting power of DRep Abstain votes + auto-abstain stake

Yes Total

  • IF governance action type != 'NoConfidence'

    • Total of voting power of DReps Yes votes

  • IF governance action type == 'NoConfidence'

    • Total of voting power of DReps Yes votes + auto no confidence stake

  • (Yes Total / Total Active Stake) x 100

  • IF governance action type != 'NoConfidence'

    • Total of voting power of DReps No votes + auto no confidence stake

  • IF governance action type == 'NoConfidence'

    • Total of voting power of DReps No votes

  • (No Total / Total Active Stake) x 100

  • Total Active Stake - Yes Total - No Total

  • 100 - yes percentage - no percentage

    • this should equal ((Total Active Stake - Yes Total - No Total) / Total Active Stake ) * 100

DRep Vote Total Implementation

  • GovTool takes the newest vote from DReps for that governance action, filtering out votes from DReps who have recently retired.

  • In the SQL query

Example

  • So we have some DRep John Doe, who voted yes on X governance action

  • John Doe has 100k Voting power coming from his own stake and all delegators (we are taking that value directly from db-sync (no calculations on GovTool side))

  • We have another DRep - Andre, who has 200k Voting power!

  • Andre also likes the governance action and votes yes

  • As a result - we display the sum of their voting powers, so it would be 300k for yes votes

  • Important note - John Doe and Andre can change their votes

SPO Vote Totals

  • For SPOs logic is completely the same as the DReps one - the difference is that we are taking the voting power from a different table - dedicated to SPOs (pool_stat)

Yes Percentage

No Total

No Percentage

Not Voted Total (remainder of Total Active Stake)

Not Voted Percentage (remainder of Total Active Stake Percentage)

run on DB-Sync. This pulls all the proposal data, and vote totals.

GovTool takes DRep voting power from for the registered DReps and the "predefined voting option DReps", this data is only updated once per epoch.

💭
✅
✅
❌
❌
🗳️
🗳️
See GovTool's SQL query
drep_distr table of DB-Sync
Gets the latest epoch of DRep distribution
Gets the voting power of the predefined no confidence DRep
Gets the voting power of the predefined always abstain DRep
Calculates Yes Total
Calculates No Total
Calculates Abstain Total