Skip to content

fix(home): count tokens, not prediction rows; drop dead banned copy; honest Pro/Dev and health lines - #35

Merged
solsentry merged 2 commits into
mainfrom
fix/home-counter-per-token
Oct 2, 2026
Merged

solsentry merged 2 commits into
mainfrom
fix/home-counter-per-token

Conversation

@solsentry

Copy link
Copy Markdown
Owner

Why

Brief n, item 8 (solsentry BACKLOG §N).

  • The home counter shows /v1/stats.total_predictions, which counts prediction rows. Prod holds 213,506 rows over 114,168 tokens (01/10). solsentry#396 adds unique_mints_predicted (one count per token).
  • src/lib/i18n-landing.ts kept banned copy that would come back if a component reused it.
  • The home promised Pro/Dev features as live, and About said the health endpoint checks invariants daily. The self-healer is parked in prod, and /health returns only {service, status} (read 01/10).

What

  • (a) Counter: NetworkStats gains optional unique_mints_predicted / unique_mints_resolved. When the api serves them, the home footer reads "LIVE • over N tokens with outcome-tracked predictions, each auditable per mint" (PT: "mais de N tokens com predição rastreada até o desfecho, cada uma auditável por mint"), and the KPI cell becomes "Tokens · outcome-tracked". Fallback: while the field is absent (api before #396), both keep today's row-based text. This is safe to merge before or after the api deploy.
  • (b) Banned copy removed: the SenaTeaser component was imported nowhere. It is deleted, with all sena* keys and their per-operator sample ("This deployer has confirmed rugs on record, each one verified on-chain", LOCK-03). The unused statsLabelOperators ("Operators tracked") is removed. The "fixed precision" line the BACKLOG cited was already gone (no % figure left in the file).
  • (c) easyProDev: "…live in Pro / Dev" → "…are coming in Pro / Dev" (PT: "chegam em breve no Pro / Dev").
  • (d) About trust row: "invariants checked daily" → "service status (up / down)" (PT: "status do serviço (no ar ou fora)").

Checks

  • tsc --noEmit clean; eslint clean on the touched files.
  • prettier --check: i18n-landing.ts was formatted. AboutClient.tsx, LandingClient.tsx and api.ts were already non-compliant on main (checked on the origin/main copies) and are left as they were, to keep the diff reviewable.
  • Landmine linter (solsentry ops/tools/check_landmines.py): no findings on the new copy. One pre-existing BAN-05 ("open source") warning in AboutClient.tsx:227 exists on main too, so it is out of scope here and reported to the coordinator.
  • Not built locally (next build); CI builds it.

…honest Pro/Dev and health lines

- Home counter and KPI cell use unique_mints_predicted from /v1/stats
  when the api serves it (solsentry #396), with the row count as the
  fallback: 'over N tokens with outcome-tracked predictions, each
  auditable per mint'.
- Remove the unused SenaTeaser component and its copy (a per-operator
  'confirmed rugs, each verified on-chain' sample) and the unused
  'Operators tracked' label.
- 'Full history, graphs and alerts live in Pro / Dev' -> 'are coming'.
- About: /health returns service status only; drop 'invariants checked
  daily'.
'open-source Haradrim patterns' (EN and PT acknowledgments) described
Helius's public patterns we credit, not SolSentry, but read like the
banned open-source claim. Reworded to 'public Haradrim patterns'.
@solsentry
solsentry merged commit 110d06a into main Oct 2, 2026
2 checks passed
@solsentry
solsentry deleted the fix/home-counter-per-token branch October 10, 2026 20:38
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