Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat(three-token): finish the where-every-$100-goes section with docs, changelog and light-theme error states

nirholas596c2425043d
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 02b56a887..f2f36ee71 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **3D models no longer arrive glued to a floor slab**: The 3D generators sometimes built a thin, wide plate under whatever you asked for: a teapot sitting on a black marble square, a telescope standing in the middle of a grey sheet many times its size. Every finished model is now checked for that plate and has it cut away before it is saved, while anything that really has a base, like a lamp foot, a plinth or a tripod, is left exactly as it was. (`/forge`) `[fix]`
- **59 more pages now read in your language**: Pick any of the 85 languages in the language menu and 59 more pages now follow it, including the Airdrop Checker, Portfolio, Drops, Crews, Launch, the Agent Monitor and the rig and embed doctors. Titles, buttons, form labels, hints, error messages and the text shown when a page is shared all translate. Live numbers and statuses on those pages (counters, balances, scan results, play and pause buttons) keep updating in every language: the translation step now recognises a value the page has already filled in and leaves it alone, instead of putting a placeholder like "Loading" back over it. (`/airdrops`) `[improvement, fix]`
- **Photo to 3D keeps going when its main engines go down**: When a photo-to-3D job fails partway through, it already moves to the next engine on its own. Until now that only worked while another textured engine was up, so when the two main engines failed together last week, photo generations stopped completely. There is now one more rung: our own TripoSG engine takes over the job and delivers the shape of your model without textures, and the progress screen tells you when that happens. You get a model you can work with instead of an error, and whenever a textured engine is up, it is still used first. (`/image-to-3d`) `[fix, improvement]`
+- **See where every $100 paid in $THREE goes**: The $THREE page now shows, for paid compute, marketplace sales, scarcity mints, spins and copy-trading fees, how every $100 splits between the seller, the treasury that funds buybacks, and holder rewards. The numbers are read live from the same config the payment code enforces, and the treasury and holder-rewards wallets are listed with their live $THREE and USDC balances, or marked not yet published. The platform never burns $THREE. The page also follows your light or dark theme now. (`/three-token`) `[feature]`
- **The language menu now offers 69 languages**: The language menu grew from 14 languages to 69, each one fully translated. 55 more pages now follow the language you pick, including Hood Desk, Portfolios, Fee Bridge, Agent Cards, Connect, the CLI sign-in approval, Motion, Docs World and the legal pages. Their titles, headings, buttons and the text shown when a page is shared all translate, and so does the sitemap, so you can find every page on three.ws in your own language. (`/sitemap`) `[feature, improvement]`
- **The Oracle's model now downloads from any website**: The Oracle's conviction model is published data, and the @three-ws/oracle-model package is meant to score coins anywhere. Until now its download endpoint only answered pages on three.ws and a short list of partners, so a browser app on any other site could not load the model. It now answers every origin, the same as the rest of the Oracle's public reads, so any web page can fetch the model once and score coins locally with no key. (`/oracle-lab`) `[improvement]`
diff --git a/data/changelog.json b/data/changelog.json
index 7423a2944..c6f6e1bf3 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,13 @@
{
"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security, desktop (desktop entries become the desktop app's release notes). `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-09-30",
+ "title": "See where every $100 paid in $THREE goes",
+ "summary": "The $THREE page now shows, for paid compute, marketplace sales, scarcity mints, spins and copy-trading fees, how every $100 splits between the seller, the treasury that funds buybacks, and holder rewards. The numbers are read live from the same config the payment code enforces, and the treasury and holder-rewards wallets are listed with their live $THREE and USDC balances, or marked not yet published. The platform never burns $THREE. The page also follows your light or dark theme now.",
+ "tags": ["feature"],
+ "link": "/three-token"
+ },
{
"date": "2026-09-29",
"title": "API docs you can build a production integration from",
diff --git a/docs/api-reference.md b/docs/api-reference.md
index ca84301a9..db23d2f74 100644
--- a/docs/api-reference.md
+++ b/docs/api-reference.md
@@ -6689,6 +6689,46 @@ page strip (on-chain agents, attestations, forge models).
---
+## $THREE Fee Flow API
+
+Two public reads behind the "Where every $100 goes" section of [/three-token](/three-token). No auth, CORS open.
+
+```
+GET /api/token/config
+GET /api/three-token/wallets
+```
+
+`/api/token/config` returns the $THREE mint, the treasury and holder-rewards wallet addresses (`null` with `treasury_configured` / `rewards_configured` set to `false` when unpublished), and `split_policies`: every split the payment code enforces, as legs of `{ role, bps }` that sum to 10,000 basis points. Roles are `seller` (the seller, creator, or copied trader), `treasury` (funds $THREE buybacks), and `rewards` (paid back to holders). The platform never burns $THREE, so no policy has a burn leg. Divide `bps` by 100 to get dollars out of every $100.
+
+`/api/three-token/wallets` returns what the two receivers hold right now, read from Solana through the RPC failover chain:
+
+```json
+{
+ "as_of": "2026-09-30T08:12:29.625Z",
+ "wallets": [
+ {
+ "role": "treasury",
+ "address": "<base58 address>",
+ "configured": true,
+ "balances": {
+ "three": { "symbol": "$THREE", "ok": true, "amount": 140, "atomics": "140000000", "decimals": 6 },
+ "usdc": { "symbol": "USDC", "ok": true, "amount": 2.081, "atomics": "2081000", "decimals": 6 }
+ }
+ },
+ { "role": "rewards", "address": null, "configured": false, "balances": null }
+ ]
+}
+```
+
+An unpublished wallet is listed with `configured: false`, never omitted. A balance the RPC chain could not read comes back `ok: false` with `amount: null`; it is never reported as zero. Successful reads are cached for 60 seconds.
+
+```bash
+curl -s https://three.ws/api/token/config | jq '.split_policies'
+curl -s https://three.ws/api/three-token/wallets | jq '.wallets[] | {role, configured, three: .balances.three.amount}'
+```
+
+---
+
## Unstoppable Agent API
The [Unstoppable Agent](/unstoppable) is a self-funding autonomous agent: it
diff --git a/docs/three-thesis.md b/docs/three-thesis.md
index 446904139..4c72ab6ff 100644
--- a/docs/three-thesis.md
+++ b/docs/three-thesis.md
@@ -240,6 +240,8 @@ The fee rides inside the same transaction that creates the asset, so a failed de
Two things to notice. First, the treasury leg is explicitly "funds buybacks," so consumption revenue in $THREE is recycled into market demand rather than sitting idle. Second, the rewards leg funds holder reflections: the public `GET /api/three-token/revenue-share` endpoint exposes `revenue_share_pool_pct` (currently 10), `revenue_share_pool_usd`, and `per_token_yield` alongside price, supply, and holder count.
+**Where every $100 goes, live.** The table above is a snapshot for reading. The live version is the "Where every $100 goes" section on [/three-token](/three-token): it draws every policy straight from `GET /api/token/config` (`split_policies`, in basis points), so a policy added in code appears there with no page change, and it lists the treasury and holder-rewards wallets with their live $THREE and USDC balances from `GET /api/three-token/wallets`. When the two disagree, the page and the API are right. See the [$THREE Fee Flow API](./api-reference.md#three-fee-flow-api) for the response shapes.
+
The wallets fail closed in production. If `THREE_TREASURY_WALLET` or `THREE_REWARDS_WALLET` is unset, the platform returns a typed 503 rather than routing real funds to a placeholder. Nobody's money goes to a default address by accident.
---
diff --git a/prompts/finish/021-parity-07-three-fee-flow.md b/prompts/finish/021-parity-07-three-fee-flow.md
deleted file mode 100644
index b6795bc15..000000000
--- a/prompts/finish/021-parity-07-three-fee-flow.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# parity 07: "where every $100 goes" on /three-token, from the live split policies
-
-How to run: paste this file's repo path into a fresh Claude Code chat in this repository and say "run this work order". Runnable now, no gate for the page. One measured production gap (below) needs an owner decision; it is batched into one message and does not block the page.
-
-## Operating clause (binding)
-
-- Read CLAUDE.md first, then [_context/parity-00-CONTEXT.md](_context/parity-00-CONTEXT.md). CLAUDE.md overrides everything, including this file.
-- Finish 100% in this session. Never end the turn with a question, an option list, or an unexecuted plan. A judgment call goes in one line of the final report; it never becomes a question that halts work.
-- The only permitted stops are the CLAUDE.md stop-and-ask gates: spending real funds or any irreversible on-chain write, git push or a production deploy, committing content that names a crypto project other than $THREE, and destroying unrecoverable data. Where this order hits one, it says so, and you batch every such ask into ONE message after everything else is done.
-- Never name Competitor X in anything you commit. If a reference is unavoidable, write "Competitor X".
-- No mocks, no fake data, no placeholder stubs, no unfinished-work markers, no commented-out code. Real APIs and real integrations only.
-- The em-dash and en-dash characters are banned in everything you write.
-- Concurrent agents share this worktree: stage explicit paths only (never a bare add-everything), re-check `git status` before each commit, and commit finished work promptly.
-- Before committing, run `npm run check:rules -- --paths <files you touched>`. It must exit 0.
-
-## Why this matters
-
-Competitor X's token page explains its economy in one picture: of every $100 of fees, how much goes to creators, to buybacks, to the treasury, to an ecosystem fund, with the public buyback wallet linked and a live tracker reading it. People trust what they can check. three.ws has a better-specified economy (it is in code: `SPLIT_POLICIES` in `api/_lib/token/config.js`, served publicly by `GET /api/token/config`) and never burns $THREE by design, but `/three-token` does not show where money goes.
-
-**Policy facts (do not contradict them in copy):** the platform never burns $THREE; every split routes to the treasury (which funds buybacks), the holder rewards pool, and on a sale the seller. The "buyback and burn" mentioned in `api/cron/launcher-claimer.js` is about each agent's own coin via pump.fun's buyback vault, not $THREE. Users may burn their own $THREE with the `three_burn` MCP tool; that is theirs, not the platform's.
-
-**Measured 2026-09-30:** `GET https://three.ws/api/token/config` returned `"treasury": null, "treasury_configured": false, "rewards_wallet": null, "rewards_configured": false`. `treasuryWallet()` fails closed with a 503 in production when `THREE_TREASURY_WALLET` is unset, so every $THREE-priced surface that splits to the treasury may be refusing payments. Re-measure in step 0.
-
-## Step 0: re-derive the current state
-
- curl -s https://three.ws/api/token/config | python3 -m json.tool
- node scripts/read-service-env.mjs --names | grep -E "THREE_TREASURY_WALLET|THREE_REWARDS_WALLET|THREE_BUYBACK_ENABLED"
- grep -rn "treasuryWallet()" api --include=*.js | wc -l
- sed -n 1,60p src/three-token-page.js
- grep -n "stats\|buyback" api/three-token/\[action\].js | head -20
- gcloud logging read 'resource.type="cloud_run_revision" resource.labels.service_name="three-ws-api" textPayload:"treasury_unavailable"' --freshness=7d --limit=20 --format='value(timestamp,textPayload)'
-
-Record whether the treasury and rewards wallets are configured, and how many `treasury_unavailable` refusals production logged in the last 7 days (that is the size of the live defect).
-
-## Tasks
-
-1. **The breakdown section on `/three-token`.** Render every split policy from `GET /api/token/config` as "of every $100 paid for <surface>": consumption (paid compute), marketplace sales, scarcity mints, spins, copy-trading performance fees, each as a stacked bar with dollar amounts and role labels (seller or creator, treasury, holder rewards). Name each surface in plain words (map policy keys to human labels in one place in the page code). No split number is typed into the page: all come from the API. State the no-burn policy in one sentence with a link to `docs/three-thesis.md` (published as `/docs/three-thesis` if routed; check).
-2. **Where the money is.** Under the breakdown: the treasury and rewards wallet addresses from the config with copy buttons and Solscan links, their live $THREE and USDC balances (use the existing Solana RPC helpers), and the buyback history the page already shows (reuse, do not duplicate, its data). When a wallet is not configured, say so plainly ("not yet published") instead of hiding the row.
-3. **Make it accessible.** The bars are an inline SVG or CSS with text equivalents; screen readers get the numbers, not just shapes. Loading skeletons and an error state if the config call fails.
-4. **Docs.** `docs/three-thesis.md` gains a short "where every $100 goes" section pointing at the live page and the API (not retyping numbers). Changelog entry.
-5. **The owner message.** Only if step 0 confirms the treasury or rewards wallet is unset: the count of refused payments from the logs, which surfaces are affected, and a request for the two wallet addresses. Setting them is a config-only update (`gcloud run services update three-ws-api --region us-central1 --update-env-vars THREE_TREASURY_WALLET=...,THREE_REWARDS_WALLET=...`), pre-approved as a command once the owner supplies the addresses; never pick an address yourself.
-
-## Definition of done
-
-- [ ] `/three-token` shows the per-$100 breakdown for every policy in `split_policies`, and adding a policy to `SPLIT_POLICIES` makes it appear with no page change (prove by a test or a local run with a temporary extra policy you then remove).
-- [ ] `grep` shows no basis-point or percentage literal from `SPLIT_POLICIES` in the page code.
-- [ ] Treasury and rewards rows render the configured address or an explicit "not yet published" state; balances come from real RPC reads.
-- [ ] Browser-verified at 375, 768 and 1440 px in both themes, zero console errors, loading and error states exercised.
-- [ ] Copy says the platform never burns $THREE and never says otherwise (`grep -i burn` over the diff, each hit justified in the report).
-- [ ] If the wallets were unset, the owner message was sent with the refusal count.
-
-## Never blocked
-
-| Blocker | Resolution (act, do not ask) |
-|---|---|
-| Wallets unset in production | Build the "not yet published" state; the addresses go in the owner message. The page still ships. |
-| `gcloud` re-auth needed for the log read | Report the refusal count as "not measured" and say why; it does not block the page. |
-| RPC over quota | Use the existing failover chain (`rpc_lanes`); show "balance unavailable" per row, never a stale or invented number. |
-
-## Close out (required)
-
-1. Verify every Definition of done line with the actual command output in front of you. Never claim a line you did not verify.
-2. Commit with explicit paths and a subject that describes the diff (house style: `type(scope): what changed and why a reader cares`).
-3. If every Definition of done line passes, delete this file in that same commit (`git rm prompts/finish/021-parity-07-three-fee-flow.md`) and append a dated entry to [_context/parity-PROGRESS.md](_context/parity-PROGRESS.md) with the commit SHAs. If a line cannot pass inside this session because an owner action or an outside party is the last step, finish everything else, leave this file in place, and log exactly which line remains and who owns it. Never delete this file on a partial.
-4. Final report, in this order: what step 0 measured; what changed (file list with commit SHAs); evidence for each Definition of done line; the single batched owner message, if the order has a gate; one-line judgment calls. No trailing questions.
diff --git a/prompts/finish/_context/parity-PROGRESS.md b/prompts/finish/_context/parity-PROGRESS.md
index 17f1aba56..105ca7b49 100644
--- a/prompts/finish/_context/parity-PROGRESS.md
+++ b/prompts/finish/_context/parity-PROGRESS.md
@@ -9,3 +9,9 @@ Cross-session handoff for the `parity-` orders ([parity-00-CONTEXT.md](parity-00
- Found: the `three-ws` npm package was never published, so `npx three-ws setup` (named in every MCP 401 and in `/.well-known/mcp.json`) fails for everyone. Order 919.
- Corrected in the context file: the teardown called the $THREE burn policy contradictory. It is not. The platform never burns $THREE; the burn in `launcher-claimer.js` is each agent's own coin.
- Orders 015 to 022 and 919 to 925 written 2026-09-30.
+
+## 2026-09-30: order 021, where every $100 goes (/three-token)
+
+- Shipped: `05faebd92` (live wallets API `GET /api/three-token/wallets`, `src/three-token-fee-flow.js`, light theme for the page, tests) and the close-out commit that carries this entry (segment-label and stamp polish, light-theme state-kit tokens, API reference "$THREE Fee Flow API", thesis section 6 pointer, changelog).
+- Measured in production: `treasury: null`, `rewards_wallet: null` on `/api/token/config`; neither `THREE_TREASURY_WALLET` nor `THREE_REWARDS_WALLET` exists on the Cloud Run service. 6 `POST /api/token/quote` answered 503 in the 7 days to 2026-09-30 and none succeeded (Cloud Run request log). The textPayload search for `treasury_unavailable` finds nothing because the quote handler returns that typed 503 without logging it; count refusals from the request log instead.
+- Remaining owner action (not a line of the order): publish the two wallet addresses with `gcloud run services update three-ws-api --region us-central1 --update-env-vars THREE_TREASURY_WALLET=...,THREE_REWARDS_WALLET=...`. The page shows "not yet published" until then and fills itself in afterwards with no code change.
diff --git a/public/changelog-recent.json b/public/changelog-recent.json
index b076a1844..6692526e9 100644
--- a/public/changelog-recent.json
+++ b/public/changelog-recent.json
@@ -1,11 +1,11 @@
{
- "generated_at": "2026-09-30T08:11:37.031Z",
+ "generated_at": "2026-09-30T08:16:18.027Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
"url": "https://three.ws"
},
- "total": 3785,
+ "total": 3786,
"complete": false,
"full_feed": "/changelog.json",
"entries": [
@@ -41,6 +41,16 @@
"improvement"
]
},
+ {
+ "date": "2026-09-30",
+ "type": "update",
+ "title": "See where every $100 paid in $THREE goes",
+ "summary": "The $THREE page now shows, for paid compute, marketplace sales, scarcity mints, spins and copy-trading fees, how every $100 splits between the seller, the treasury that funds buybacks, and holder rewards. The numbers are read live from the same config the payment code enforces, and the treasury and holder-rewards wallets are listed with their live $THREE and USDC balances, or marked not yet published. The platform never burns $THREE. The page also follows your light or dark theme now.",
+ "link": "/three-token",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-09-30",
"type": "update",
@@ -1578,17 +1588,6 @@
"fix",
"security"
]
- },
- {
- "date": "2026-09-09",
- "type": "update",
- "title": "Pay-per-call is keyboard-drivable, and it now tells you when the wallet lane is down instead of sitting on a spinner",
- "summary": "A full audit of /pay, the page where an agent pays $0.001 USDC on Solana per call to a paid API. Three things were quietly broken. The wallet pill kept reverting to \"loading\" after it had already shown a real balance: the page fills that pill from a live balance lookup, but the translation pass that runs a moment later put the placeholder back over it, and the same race hit the session ticker and the wallet setup dialog. Those slots are now marked as owned by the page, so a rendered balance stays put. The whole wallet picker was unreachable without a mouse, because each wallet was a clickable box rather than a button; every wallet is now a real button that tab reaches, Enter and Space activate, and a screen reader announces as selected or not. Both dialogs (the first-visit walkthrough and the wallet setup prompt) now take focus when they open, close on Escape, hand focus back to whatever opened them, and stay hidden from screen readers while closed. States are honest now too. When the agent wallet service is unreachable the page used to tell a signed-out visitor to create their first agent, which was never the problem; it now says wallets are unavailable and offers a Retry that re-runs the lookup without a page reload. A failed activity feed used to leave a row of dots ticking forever and now says the feed is unavailable. The page also gained the heading it never had, one high-contrast focus ring across every control, and a copy pass that removed the long dashes from its description and on-page text.",
- "link": "/pay",
- "tags": [
- "fix",
- "improvement"
- ]
}
]
}
diff --git a/public/changelog.json b/public/changelog.json
index f256d543f..8e7e0ff69 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-09-30T08:11:36.983Z",
+ "generated_at": "2026-09-30T08:16:17.942Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -38,6 +38,16 @@
"improvement"
]
},
+ {
+ "date": "2026-09-30",
+ "type": "update",
+ "title": "See where every $100 paid in $THREE goes",
+ "summary": "The $THREE page now shows, for paid compute, marketplace sales, scarcity mints, spins and copy-trading fees, how every $100 splits between the seller, the treasury that funds buybacks, and holder rewards. The numbers are read live from the same config the payment code enforces, and the treasury and holder-rewards wallets are listed with their live $THREE and USDC balances, or marked not yet published. The platform never burns $THREE. The page also follows your light or dark theme now.",
+ "link": "/three-token",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-09-30",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 0c93068b2..768db1463 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -30,6 +30,14 @@
<category>fix</category>
<description>When a photo-to-3D job fails partway through, it already moves to the next engine on its own. Until now that only worked while another textured engine was up, so when the two main engines failed together last week, photo generations stopped completely. There is now one more rung: our own TripoSG engine takes over the job and delivers the shape of your model without textures, and the progress screen tells you when that happens. You get a model you can work with instead of an error, and whenever a textured engine is up, it is still used first.</description>
</item>
+ <item>
+ <title>See where every $100 paid in $THREE goes</title>
+ <link>https://three.ws/three-token</link>
+ <guid isPermaLink="false">2026-09-30:See where every $100 paid in $THREE goes</guid>
+ <pubDate>Wed, 30 Sep 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>The $THREE page now shows, for paid compute, marketplace sales, scarcity mints, spins and copy-trading fees, how every $100 splits between the seller, the treasury that funds buybacks, and holder rewards. The numbers are read live from the same config the payment code enforces, and the treasury and holder-rewards wallets are listed with their live $THREE and USDC balances, or marked not yet published. The platform never burns $THREE. The page also follows your light or dark theme now.</description>
+ </item>
<item>
<title>The language menu now offers 69 languages</title>
<link>https://three.ws/sitemap</link>
diff --git a/public/features.json b/public/features.json
index 117965d83..2f249312b 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-09-30T01:34:01.278Z",
+ "generated_at": "2026-09-30T08:16:17.896Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/three-token-fee-flow.js b/src/three-token-fee-flow.js
index f6298fbff..366822308 100644
--- a/src/three-token-fee-flow.js
+++ b/src/three-token-fee-flow.js
@@ -105,7 +105,7 @@ function renderPolicy({ key, legs }) {
const segments = parts
.map(
(p) =>
- `<span class="tk-ff-seg ${roleClass(p.role)}" style="flex-grow:${p.bps}">${p.bps * 8 >= totalBps ? `<span class="tk-ff-seg-t">${esc(fmtDollars(p.dollars))}</span>` : ''}</span>`,
+ `<span class="tk-ff-seg ${roleClass(p.role)}" style="flex-grow:${p.bps}">${p.bps * 5 >= totalBps ? `<span class="tk-ff-seg-t">${esc(fmtDollars(p.dollars))}</span>` : ''}</span>`,
)
.join('');
const legend = parts
@@ -203,7 +203,8 @@ function renderWallet(w) {
export function renderWallets(snapshot) {
const wallets = Array.isArray(snapshot?.wallets) ? snapshot.wallets : [];
const asOf = snapshot?.as_of ? new Date(snapshot.as_of) : null;
- const stamp = asOf && !Number.isNaN(asOf.getTime())
+ const anyRead = wallets.some((w) => w.configured);
+ const stamp = anyRead && asOf && !Number.isNaN(asOf.getTime())
? `Balances read from Solana at ${asOf.toLocaleTimeString('en-US', { hour: 'numeric', minute: '2-digit' })}.`
: '';
return `<ul class="tk-ff-wallets">${wallets.map(renderWallet).join('')}</ul>${stamp ? `<p class="tk-ff-src">${esc(stamp)}</p>` : ''}`;
diff --git a/src/three-token-page.js b/src/three-token-page.js
index bb78f1ae5..ab2a485b2 100644
--- a/src/three-token-page.js
+++ b/src/three-token-page.js
@@ -103,6 +103,12 @@ function injectStyles() {
--tk-text:#111116; --tk-text-2:#33333b; --tk-muted:#55555e; --tk-dim:#62626b; --tk-strong:#000;
--tk-btn:#f0f0f4; --tk-btn-hover:#e5e5ec; --tk-link:#0b63b6; --tk-warn:#a15c00;
--tk-skel-a:#ececf0; --tk-skel-b:#f6f6f9;
+ /* shared state-kit tokens (src/shared/state-kit.js) so its empty and error
+ states read correctly on the light page */
+ --ink:#111116; --ink-dim:#55555e; --danger:#b91c1c; --modal-bg:#fff;
+ --surface-2:#f3f3f6; --surface-3:#e9e9ee; --stroke:#e2e2e8; --stroke-strong:#b9b9c4;
+ --btn-primary-bg:#111116; --btn-primary-fg:#fff; --btn-primary-bg-hover:#2b2b33;
+ --btn-secondary-bg:#f0f0f4; --btn-secondary-fg:#111116; --btn-secondary-bg-hover:#e5e5ec; --btn-secondary-border:#d6d6de;
}
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }