Skip to content

Implement dispute rate metric on stats page #148

@Marvell69

Description

@Marvell69

The dispute rate (disputed / total funded) is a key protocol health indicator. A low dispute rate signals trustworthy participants; a rising rate may indicate fraud or oracle issues.

Requirements and context

  • Metric card on stats page: "Dispute Rate: X%" (last 30 days)
  • Colour coding: green (<1%), amber (1–5%), red (>5%)
  • Tooltip: how dispute rate is calculated
  • Historical sparkline: dispute rate trend over 90 days
  • Computed from contract event data

Suggested execution

git checkout -b feat/dispute-rate-metric
  • Create <DisputeRateCard /> component
  • Compute dispute rate from event data
  • Add sparkline using recharts
  • Write computation and colour threshold tests

Example commit message
feat: add dispute rate metric card with colour coding to stats page

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions