Skip to content

fix: correct per-network leaderboard ranks on testnets overview#513

Merged
albert-mr merged 2 commits intodevfrom
fix-overview-leaderboards
Apr 1, 2026
Merged

fix: correct per-network leaderboard ranks on testnets overview#513
albert-mr merged 2 commits intodevfrom
fix-overview-leaderboards

Conversation

@albert-mr
Copy link
Copy Markdown
Collaborator

Summary

Fixes the testnets overview page (/testnets) where per-network leaderboards displayed incorrect data:

  • Sequential ranks: Per-network top-5 leaderboards now show ranks 1-5 instead of gapped global ranks (e.g., 1, 3, 7)
  • Accurate asimov filtering: Removed clause that included validators with no synced wallets in the asimov network filter
  • Simplified stats: Replaced dual-metric display (on-chain active + total participants) with a single "Active Validators" count derived from leaderboard entries
  • Removed dead endpoint: Deleted /api/v1/validators/wallets/stats/ and its frontend consumer, now redundant

Pre-Landing Review

Pre-Landing Review: 1 issue — 1 auto-fixed (label inconsistency between Asimov/Bradbury), 0 critical.

Test plan

  • Testnets overview page shows sequential ranks 1-5 for both Asimov and Bradbury leaderboards
  • Asimov leaderboard only shows validators with active wallets on the network
  • Bradbury leaderboard only shows validators with active wallets on the network
  • Validator count per network matches the number of leaderboard entries displayed
  • Both networks show "Active Validators" label consistently
  • Validators > Leaderboard page (/validators/leaderboard) still works correctly with full global ranks

🤖 Generated with Claude Code

albert-mr and others added 2 commits April 1, 2026 12:33
Per-network leaderboards on the testnets overview page showed gapped global
ranks (e.g. 1, 3, 7) instead of sequential ranks within each network. The
asimov filter also incorrectly included validators with no synced wallets.

- Frontend: re-map top-5 entries with sequential 1-based ranks
- Backend: remove "no wallets" inclusion clause for asimov network filter
- Remove unused wallet stats endpoint and its frontend consumer
- Simplify network stat display to single "Active Validators" metric

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@albert-mr albert-mr merged commit 91b71d5 into dev Apr 1, 2026
@albert-mr albert-mr deleted the fix-overview-leaderboards branch April 1, 2026 10:37
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