telosnetwork / open-block-explorer

The Open Block Explorer (OBE) is the first open source block explorer that is designed to support all AntelopeIO-based blockchains.
https://explorer.telos.net
Apache License 2.0
27 stars 24 forks source link

Block Explorer Vote Page Total Votes Calculation Needs a Fix #838

Open pmjanus opened 7 months ago

pmjanus commented 7 months ago

Update Total Votes Calculation on Block Explorer Vote Page to Reflect Voting Power

Description

The current implementation of the vote page on the Block Explorer is displaying the total votes incorrectly. Instead of showing the actual voting power, which is what matters for the election, it's displaying the raw vote count. This discrepancy can lead to misunderstanding of the actual influence each voter has in the election process. This issue aims to improve the accuracy and clarity of the voting information displayed in the Block Explorer, providing users with a more accurate representation of the election process.

Current Behavior

Expected Behavior

Technical Details

Acceptance Criteria

  1. The total votes displayed on the vote page accurately reflects the voting power, not the raw vote count.
  2. The calculation method used matches the blockchain consensus rules for determining voting power.
  3. The UI clearly indicates that the number shown represents voting power, not raw votes.
  4. A tooltip or info icon is added to explain the concept of voting power vs. raw votes.
  5. The change is consistently applied across all relevant pages and components in the Block Explorer.
  6. Unit tests are updated or added to verify the correct calculation of voting power.

Additional Tasks