Skip to content

fix: remove double percentage multiplication in dora overview display#97

Open
qu0b wants to merge 1 commit intomasterfrom
qu0b/fix-dora-participation-rate-display
Open

fix: remove double percentage multiplication in dora overview display#97
qu0b wants to merge 1 commit intomasterfrom
qu0b/fix-dora-participation-rate-display

Conversation

@qu0b
Copy link
Copy Markdown
Member

@qu0b qu0b commented Apr 10, 2026

Summary

  • The Dora epoch API returns globalparticipationrate as an integer percentage (0-100), but the dora overview text formatter was multiplying by 100 again (rate*100), producing values like 4400% instead of 44%.
  • Removed the extra *100 multiplier so the displayed value matches the API response.

Test plan

  • Verified against live bal-devnet-3: panda dora overview now shows 44.00% matching the epoch API's globalparticipationrate: 44
  • JSON output unchanged (participation_rate: 44)
  • golangci-lint passes

The Dora epoch API returns `globalparticipationrate` as an integer
percentage (0-100). The CLI text formatter was multiplying by 100 again,
producing values like 4400% instead of 44%.
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