Skip to content

Make the dashboard live: last good values instead of mocks, Stellar holders, about $1T with the CCTP caveat - #59

Merged
RahilBhavan merged 2 commits into
mainfrom
goal-20261025-live
Oct 26, 2026
Merged

RahilBhavan merged 2 commits into
mainfrom
goal-20261025-live

Conversation

@RahilBhavan

Copy link
Copy Markdown
Owner

What changed

  • No mocked numbers. src/lib/mockData.ts is deleted. When a live read fails, each getter returns its last good rows from src/data/last-good.json, labeled Last good with the date of the original read (badge text, not a bare ~). A row with no stored value is left out and the page says "Unavailable". scripts/snapshot-last-good.ts writes the file, and only from a fully live read. The invented weekly-flows series is gone; the stored series is the real Blockscout log read of 2026-10-26.
  • More than Ethereum. Chain supply already covered 13 chains, so the gap was holders: top holders were Ethereum only. They now include Stellar USDY (stellar.expert holders API, keyless). Stellar is the second-largest USDY chain by supply. The flows stay Ethereum-only on purpose (the InstantManagers exist only there, ADR-005).
  • About $1T. /summary and /issuance say "about $1T" and put the caveat next to it: $1.02T after removing $192.1B of Circle CCTP transfers, $1.21T if they were counted (grossUsd, grossWithCctpUsd).
  • README. The localhost:3000 link is replaced. Dune key untouched; no workflows added.
  • The /issuance badge said "Live" for a dated snapshot. It now says "Last good" with the snapshot date.

Verification (2026-10-26)

  • npx tsc --noEmit, npm run lint, npm test (6 check files) and npm run build all pass.
  • npx tsx scripts/snapshot-last-good.ts: every part came back live (15 chain rows, 45 holder rows, 167 weekly-flow rows, 4 benchmark rows).
  • npx tsx scripts/verify-supply.ts against independent explorers: Ethereum USDY and OUSG match Blockscout exactly; Mantle USDY 319,742.91 matches Routescan; Plume USDY 0 matches Plume Blockscout; Stellar USDY 467,502,151.70 (Horizon) vs 467,502,127.77 (stellar.expert), 0.000005% apart. Arbitrum, Polygon, BNB, Solana and others were not cross-checked (explorers block scripted requests or need a key).
  • next start on a spare port: /, /flows, /issuance, /summary return 200 and /api/metrics returns 200 with 15 live chain rows, 45 live holder rows (30 Ethereum, 15 Stellar), 167 live flow rows; the home HTML contains no "mock". Total TVL $2.69B, Live.
  • Offline test: with fetch rejecting every call, the four getters return chain 15 rows, holders 45, flows 167, all cached with their original dates, and the Ondo benchmark row from the cached chain total.

Not done / for Rahil

  • Dune key rotation (untouched).
  • last-good.json goes stale until someone reruns the snapshot script; I added no scheduler.
  • USTB and TBILL have no free live source: they show their 2026-09-24 value as Last good.
  • Plume USDY supply reads 0 on both the RPC and its explorer, and OUSG on Polygon and Solana read 0 as well; the heatmap shows those as "-".
  • Noted while here: the old mock values differed a lot from the chain (for example Noble USDY 5.6M mock vs 0.06M live), which is why they were removed.

🤖 Generated with Claude Code

…state the CCTP caveat

Delete mockData.ts. Failed reads fall back to real earlier reads in
src/data/last-good.json, labeled Last good with their date. Add Stellar USDY
top holders (stellar.expert) and a supply cross-check against explorers.
The summary now says about $1T with the CCTP exclusion beside it ($1.02T
without CCTP, $1.21T with). Remove the localhost link from the README.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ondo-nexus Ready Ready Preview Oct 26, 2026 1:36am UTC

@RahilBhavan
RahilBhavan merged commit 01ba52d into main Oct 26, 2026
3 checks passed
@RahilBhavan
RahilBhavan deleted the goal-20261025-live branch October 26, 2026 01:37

This branch was successfully deployed

1 active deployment
Preview — f7e703df Deployed Oct 26, 2026 by vercel[bot]
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