Skip to content

Title: fix(reputation): remove mock leaderboard path, add insufficient-data response - #68

Open
chidinma000 wants to merge 1 commit into
octraban:mainfrom
chidinma000:indexer
Open

Title: fix(reputation): remove mock leaderboard path, add insufficient-data response#68
chidinma000 wants to merge 1 commit into
octraban:mainfrom
chidinma000:indexer

Conversation

@chidinma000

@chidinma000 chidinma000 commented Aug 29, 2026

Copy link
Copy Markdown

src/api/reputation.ts previously had two leaderboard code paths — one that built a synthetic mockChainData array (uniform transactionCount: 10, a sybilRisk derived from combinedScore) and passed it to createLeaderboard. A reputation leaderboard that can silently return fabricated rankings is misleading, and the dual path was a maintenance hazard. The synthetic path was already deleted on main in 3992a6c

Closes #47

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.

Remove the mock leaderboard code path from the reputation endpoint

1 participant