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
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
Suggested execution
<DisputeRateCard />componentExample commit message
feat: add dispute rate metric card with colour coding to stats page