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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(balances): $THREE invisible to wallets when Helius is down (Token-2022 + RPC failover)
nirholasfbc59ca562f1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 852659d33..1b6440092 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,7 +9,9 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **We Gave 11 AI Agents Their Own Wallets and Real SOL. Here Are All 90 Trades.** (`/blog/all-90-trades`) — Two weeks of fully autonomous pump.fun trading on Solana: 11 armed strategies, 90 closed real-money trades, every entry thesis, every exit, every mistake. Plus the 83,000 coins the fleet did not buy, the winners it missed, and a paperhands audit of every sell. Complete dataset included.- **Agent wallet and portfolio views stay reliable when an RPC provider is capped** — Agent portfolio and wallet-balance reads no longer fail when a Solana RPC provider hits its daily request limit. Balance lookups now fall back across several free, unthrottled Solana nodes, so net-worth snapshots and holdings keep loading during provider throttling instead of erroring out. `[fix, infra]`- **All 90 trades from the autonomous fleet, published and graded** — The autonomous sniper fleet has closed 90 real-money trades across 8 strategies and 8 wallets, and we published every single one: entry thesis, exit, on-chain receipts, and an honest grade per trade. The deep dive also audits everything the fleet did not do: the 83,000 launches it observed and declined, proof the conviction scorer’s top band hits 77.5% winners at scale (and why zero of those coins were bought), the missed monsters that were invisible at minute zero, and a paperhands check showing every one of the 90 sells was vindicated. Full dataset downloadable as JSON. (`/blog/all-90-trades`) `[docs, feature]`+- **Fixed: wallets showing $0 of $THREE on the tiers page** — Holders reported the site not recognising their $THREE balance: /three showed "You hold $0" (Member tier) for wallets with real bags, across Phantom, Solflare, and Brave Wallet. Root cause: when our primary balance provider ran out of quota, the backup on-chain read only queried the classic SPL token program, and $THREE (like all pump.fun coins) lives on Token-2022, so it was invisible. The backup path now reads both token programs and rides the same deep multi-provider RPC failover as the rest of the platform, so holder tiers, fee discounts, and quota boosts resolve correctly even when individual RPC providers are down. (`/three`) `[fix]`- **Opening a 3D object gives you a viewer, not a chatbot** — Previewing a prop from the CC0 object library (a wrench, a vase, an ammo box) used to drop you into the embodied-agent surface, complete with an "Ask the agent" box and prompts like "Why are you embodied?" that make no sense for an inanimate object. Objects now open in a dedicated viewer mode: the agent chat and avatar controls are gone, replaced by the things you actually want for a 3D thing — Restyle to recolor or AI-restyle its materials, View in AR to place it in your room, and Download the CC0 GLB. Avatars are untouched and still open with the full agent experience. (`/objects`) `[improvement]`+- **The sniper learns from its own postmortem: conviction-crossing entries and smarter trailing stops** — Two upgrades shipped straight from the 90-trade analysis. First, a new oracle_crossing trigger: instead of judging a coin at launch, when the conviction scorer has no signal yet, an arm can now buy the moment a coin first crosses its conviction bar. Measured over the fleet window, that band pumped or graduated 77.5% of the time versus an 11.8% base rate, and the crossing lands a median of two minutes after launch. The formerly idle strict arm is re-armed on it with a sell-the-initials ladder. Second, trailing stops now arm only once a position has been above breakeven; armed underwater they only converted recoverable dips into locked losses while the hard stop-loss already capped the downside. (`/blog/all-90-trades`) `[feature, improvement]`## 2026-07-22diff --git a/api/_lib/balances.js b/api/_lib/balances.jsindex 16ab0ab3a..fed03b1c5 100644--- a/api/_lib/balances.js+++ b/api/_lib/balances.js@@ -17,6 +17,7 @@import { cacheGet, cacheSet, cacheDel } from './cache.js';import { getMetadataForMints } from './token-metadata.js';import { solPriceUsd } from './sol-price.js';+import { solanaRpcEndpoints, makeRotatingFetch, markEndpointCooldown } from './solana/connection.js';const BALANCES_TTL_S = 60;// Last-known-good snapshot lifetime. A long horizon so a wallet that briefly@@ -25,18 +26,6 @@ const BALANCES_TTL_S = 60;// successful read.const BALANCES_LKG_TTL_S = 24 * 60 * 60;-// The last-resort public RPCs, tried in order when Helius is absent or quota--// exhausted. `api.mainnet-beta.solana.com` aggressively rate-limits and its CDN-// returns 404/403 under load — a single endpoint is a single point of failure-// (it was the source of the `upstream 404: Not Found` net-worth 502s), so we-// rotate a small pool. SOLANA_RPC_URL overrides the primary; SOLANA_RPC_FALLBACKS-// (comma-separated) appends more. Dedup, drop falsy.-const PUBLIC_SOL_RPCS = [- process.env.SOLANA_RPC_URL || 'https://api.mainnet-beta.solana.com',- ...(process.env.SOLANA_RPC_FALLBACKS- ? process.env.SOLANA_RPC_FALLBACKS.split(',').map((s) => s.trim())- : ['https://solana-rpc.publicnode.com']),-].filter((v, i, a) => v && a.indexOf(v) === i);const PUMP_FRONTEND_BASE = process.env.PUMP_FRONTEND_BASE || 'https://frontend-api-v3.pump.fun';function heliusRpc() {const key = process.env.HELIUS_API_KEY;@@ -109,6 +98,12 @@ function isQuotaError(err) {function tripHeliusCooldown(err, category) {heliusCooldownUntil = Date.now() + HELIUS_QUOTA_COOLDOWN_MS;heliusQuotaTrips++;+ // Park Helius in the process-wide endpoint cooldown too, so the raw-RPC+ // fallback chain below (which includes the same Helius URL) skips it instead+ // of re-discovering the exhausted quota one doomed rotation at a time. A true+ // quota signal in the message picks the long (hours) window.+ const helius = heliusRpc();+ if (helius) markEndpointCooldown(helius, 429, String(err?.message || ''));warnThrottled(category,`[balances] helius quota/rate-limited — skipping it for ${Math.round(HELIUS_QUOTA_COOLDOWN_MS / 60_000)}min, using public RPC: ${err?.message}`,@@ -120,6 +115,9 @@ export function __resetBalancesBreaker() {heliusCooldownUntil = 0;heliusQuotaTrips = 0;_warnedAt.clear();+ // Rebuild the rotating pool too, so a test that mutates the RPC env vars gets+ // a chain reflecting them rather than the first build's snapshot.+ _rotatingRpc = null;}async function fetchJson(url, opts = {}) {@@ -137,39 +135,34 @@ async function fetchJson(url, opts = {}) {return r.json();}-async function solRpc(body, { allowFallback = true } = {}) {- const helius = heliusRpc();- // Skip Helius entirely while its quota is known-exhausted (breaker open) — no- // doomed round-trip, no per-request warning. When fallback isn't allowed the- // caller explicitly wants Helius, so we still try (and surface) it.- if (helius && (allowFallback ? heliusAvailable() : true)) {- try {- return await fetchJson(helius, {- method: 'POST',- headers: { 'content-type': 'application/json' },- body: JSON.stringify(body),- });- } catch (err) {- if (!allowFallback) throw err;- if (isQuotaError(err)) tripHeliusCooldown(err, 'helius:quota');- else warnThrottled('helius:fail', `[balances] helius failed, falling back to public RPC: ${err?.message}`);- }- }- // Try each public RPC in turn — one endpoint's 404/403/429 under load must not- // fail the whole read. Only when every fallback is exhausted do we throw.- let lastErr;- for (const url of PUBLIC_SOL_RPCS) {- try {- return await fetchJson(url, {- method: 'POST',- headers: { 'content-type': 'application/json' },- body: JSON.stringify(body),- });- } catch (err) {- lastErr = err;- }- }- throw lastErr ?? Object.assign(new Error('no Solana RPC configured'), { status: 502 });+// Raw JSON-RPC over the CANONICAL platform-wide failover chain (solanaRpcEndpoints:+// explicit SOLANA_RPC_URL, QuickNode, Helius, Alchemy, operator fallbacks,+// keyless public lanes, paid last-resort), sharing the process-wide endpoint+// cooldown map with every other Solana caller. The previous private pool here+// (default public mainnet-beta + SOLANA_RPC_FALLBACKS) went dark whenever Helius+// was quota-exhausted: publicnode hard-blocks getTokenAccountsByOwner-by-programId+// (403) and the public mainnet-beta endpoint 429s per-method, so every wallet+// silently read as holding $0 and the whole holder-tier lever collapsed to Member.+// makeRotatingFetch also classifies 200-status JSON-RPC error bodies (quota+// -32429, paid-tier gates like Tatum's -16401) as failover signals, so a provider+// answering 200 + error can never surface as an empty-but-successful balance.+let _rotatingRpc = null;+function rotatingRpc() {+ if (!_rotatingRpc) _rotatingRpc = makeRotatingFetch(solanaRpcEndpoints('mainnet'));+ return _rotatingRpc;+}++async function solRpc(body) {+ // One bound for the whole rotation so a deep chain of slow lanes can never+ // stall the holder-gate / portfolio path indefinitely. Individual attempts are+ // already capped inside the rotating fetch, so this only backstops the sum.+ const r = await rotatingRpc()(null, {+ method: 'POST',+ headers: { 'content-type': 'application/json' },+ body: JSON.stringify(body),+ signal: AbortSignal.timeout(30_000),+ });+ return r.json();}// -- Solana price helpers --@@ -291,6 +284,15 @@ async function getSolanaBalancesViaDas(address) {},}),});+ // A 200-status JSON-RPC error envelope (how some gateways answer quota+ // exhaustion) must throw, not read as "no assets", so the caller trips the+ // breaker and takes the fallback chain instead of caching an empty portfolio.+ if (resp?.error) {+ throw Object.assign(+ new Error(`helius DAS error ${resp.error.code ?? ''}: ${resp.error.message ?? 'unknown'}`),+ { status: 502 },+ );+ }const result = resp?.result;if (!result) break;if (page === 1 && result.nativeBalance) {@@ -405,23 +407,31 @@ async function getSolanaBalancesViaDas(address) {// -- Solana balance fallback: plain RPC + DB metadata cache --+// Both SPL token programs. pump.fun mints (including $THREE) are Token-2022,+// so a fallback that queried only the classic program silently dropped them,+// while Helius DAS covers both. That meant every wallet's $THREE "disappeared"+// exactly when Helius was quota-exhausted and reads degraded to raw RPC, which+// zeroed the whole holder-tier lever (the "site shows You hold $0" reports).+const SPL_TOKEN_PROGRAM = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';+const SPL_TOKEN_2022_PROGRAM = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';+async function getSolanaBalancesFallback(address) {const solResp = await solRpc({ jsonrpc: '2.0', id: 1, method: 'getBalance', params: [address] });const lamports = solResp.result?.value ?? 0;const solAmount = lamports / 1e9;- const tokenResp = await solRpc({- jsonrpc: '2.0',- id: 2,- method: 'getTokenAccountsByOwner',- params: [- address,- { programId: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA' },- { encoding: 'jsonParsed' },- ],- });+ const [legacyResp, t22Resp] = await Promise.all(+ [SPL_TOKEN_PROGRAM, SPL_TOKEN_2022_PROGRAM].map((programId, i) =>+ solRpc({+ jsonrpc: '2.0',+ id: 2 + i,+ method: 'getTokenAccountsByOwner',+ params: [address, { programId }, { encoding: 'jsonParsed' }],+ }),+ ),+ );- const tokenAccounts = tokenResp.result?.value ?? [];+ const tokenAccounts = [...(legacyResp.result?.value ?? []), ...(t22Resp.result?.value ?? [])];const fungible = tokenAccounts.map((a) => {const info = a.account?.data?.parsed?.info;diff --git a/api/_lib/solana/connection.js b/api/_lib/solana/connection.jsindex 52d05dd83..85ff4294d 100644--- a/api/_lib/solana/connection.js+++ b/api/_lib/solana/connection.js@@ -171,6 +171,9 @@ export function normalizeRpcUrl(raw) {// tick — that re-hammering was the source of the 429 retry storm in the logs.// Plain rate-limits, auth rejections, and transient 5xx/network blips cool down// for shorter, proportionate windows.+// Per-attempt fetch bound inside the rotating fetch: one hung provider must cost+// at most this before the rotation moves to the next lane.+const ATTEMPT_TIMEOUT_MS = 10_000;const QUOTA_COOLDOWN_MS = 6 * 3_600_000; // 6h — daily/monthly quota exhaustedconst RATE_LIMIT_COOLDOWN_MS = 10 * 60_000; // 10m — transient 429const AUTH_COOLDOWN_MS = 30 * 60_000; // 30m — bad/expired key on this provider only@@ -241,7 +244,13 @@ function inferNetwork(url) {// connection rotates across them — so no single free quota becomes the bottleneck// and a provider running dry transparently fails over to the next.function extraFallbackUrls() {- return (process.env.SOLANA_RPC_FALLBACK_URLS || '')+ // SOLANA_RPC_FALLBACKS was the balances-layer-only fallback var before the+ // balance reads moved onto this canonical chain (2026-07-23); it is read here+ // too so an operator value set under either name keeps working. Entries that+ // duplicate a keyed provider above dedupe away.+ return [process.env.SOLANA_RPC_FALLBACK_URLS, process.env.SOLANA_RPC_FALLBACKS]+ .filter(Boolean)+ .join(',').split(',').map((s) => normalizeRpcUrl(s)).filter(Boolean);@@ -521,7 +530,15 @@ export function makeRotatingFetch(endpoints) {// empty `[]`) straight to the browser.const tryEndpoint = async (url) => {try {- const resp = await fetch(url, init);+ // Bound every attempt so one hanging provider can never absorb the whole+ // request budget (undici's default timeouts run to minutes): the attempt+ // aborts, cools briefly, and the rotation moves on. A caller-supplied+ // signal still applies on top via AbortSignal.any.+ const attemptSignal = AbortSignal.timeout(ATTEMPT_TIMEOUT_MS);+ const resp = await fetch(url, {+ ...init,+ signal: init?.signal ? AbortSignal.any([init.signal, attemptSignal]) : attemptSignal,+ });if (shouldRotate(resp.status)) {// Read the body only on the failure path (we never return it) so a// quota signal can pick the long cooldown.diff --git a/api/payments/solana/[action].js b/api/payments/solana/[action].jsindex 03e9831c6..ae5aa5320 100644--- a/api/payments/solana/[action].js+++ b/api/payments/solana/[action].js@@ -193,7 +193,16 @@ async function handleConfirm(req, res) {const tokenBalances = tx.meta?.postTokenBalances || [];const preBalances = tx.meta?.preTokenBalances || [];const matchingTransfer = tx.transaction.message.instructions.find((ix) => {- if (ix.programId?.toString() !== 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA') return false;+ // Either SPL token program: $THREE (like all pump.fun mints) is Token-2022,+ // so a classic-program-only match forced every $THREE payment onto the+ // balance-delta fallback below.+ const prog = ix.programId?.toString();+ if (+ prog !== 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA' &&+ prog !== 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb'+ ) {+ return false;+ }const parsed = ix.parsed;if (parsed?.type !== 'transferChecked' && parsed?.type !== 'transfer') return false;const info = parsed.info;diff --git a/api/rider/check.js b/api/rider/check.jsindex 278cd967e..02526b456 100644--- a/api/rider/check.js+++ b/api/rider/check.js@@ -3,7 +3,6 @@ import { solanaConnection } from '../_lib/solana/connection.js';import { cors, json, method, wrap, error, rateLimited } from '../_lib/http.js';import { limits, clientIp } from '../_lib/rate-limit.js';import { TOKEN_MINT as THREE_MINT } from '../_lib/token/config.js';-const TOKEN_PROGRAM = new PublicKey('TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA');const RPC = process.env.SOLANA_RPC_URL || 'https://api.mainnet-beta.solana.com';export default wrap(async (req, res) => {@@ -24,14 +23,18 @@ export default wrap(async (req, res) => {}const connection = solanaConnection({ url: RPC, commitment: 'confirmed' });+ // Filter by MINT, not by token program: $THREE is a Token-2022 mint, so a+ // classic-program-only query never sees it (every holder read as balance 0).+ // The mint filter matches the holder's account under whichever program owns+ // the mint, and returns only that account instead of the whole wallet.const accounts = await connection.getParsedTokenAccountsByOwner(owner, {- programId: TOKEN_PROGRAM,+ mint: new PublicKey(THREE_MINT),});- const threeAccount = accounts.value.find((a) => a.account.data.parsed.info.mint === THREE_MINT);- const balance = threeAccount- ? Number(threeAccount.account.data.parsed.info.tokenAmount.uiAmount ?? 0)- : 0;+ const balance = accounts.value.reduce(+ (sum, a) => sum + Number(a.account.data.parsed.info.tokenAmount.uiAmount ?? 0),+ 0,+ );return json(res, 200, {has_pass: balance > 0,diff --git a/data/changelog.json b/data/changelog.jsonindex 43ed478f8..5cbcf5d33 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,25 @@{"$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. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-07-23",+ "title": "The sniper learns from its own postmortem: conviction-crossing entries and smarter trailing stops",+ "summary": "Two upgrades shipped straight from the 90-trade analysis. First, a new oracle_crossing trigger: instead of judging a coin at launch, when the conviction scorer has no signal yet, an arm can now buy the moment a coin first crosses its conviction bar. Measured over the fleet window, that band pumped or graduated 77.5% of the time versus an 11.8% base rate, and the crossing lands a median of two minutes after launch. The formerly idle strict arm is re-armed on it with a sell-the-initials ladder. Second, trailing stops now arm only once a position has been above breakeven; armed underwater they only converted recoverable dips into locked losses while the hard stop-loss already capped the downside.",+ "tags": [+ "feature",+ "improvement"+ ],+ "link": "/blog/all-90-trades"+ },+ {+ "date": "2026-07-23",+ "title": "Fixed: wallets showing $0 of $THREE on the tiers page",+ "summary": "Holders reported the site not recognising their $THREE balance: /three showed \"You hold $0\" (Member tier) for wallets with real bags, across Phantom, Solflare, and Brave Wallet. Root cause: when our primary balance provider ran out of quota, the backup on-chain read only queried the classic SPL token program, and $THREE (like all pump.fun coins) lives on Token-2022, so it was invisible. The backup path now reads both token programs and rides the same deep multi-provider RPC failover as the rest of the platform, so holder tiers, fee discounts, and quota boosts resolve correctly even when individual RPC providers are down.",+ "tags": [+ "fix"+ ],+ "link": "/three"+ },{"date": "2026-07-23","title": "Opening a 3D object gives you a viewer, not a chatbot",diff --git a/public/changelog.json b/public/changelog.jsonindex 0d22c29fd..2cd9adf53 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-23T05:06:22.575Z",+ "generated_at": "2026-07-23T05:53:57.500Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -38,6 +38,16 @@"feature"]},+ {+ "date": "2026-07-23",+ "type": "update",+ "title": "Fixed: wallets showing $0 of $THREE on the tiers page",+ "summary": "Holders reported the site not recognising their $THREE balance: /three showed \"You hold $0\" (Member tier) for wallets with real bags, across Phantom, Solflare, and Brave Wallet. Root cause: when our primary balance provider ran out of quota, the backup on-chain read only queried the classic SPL token program, and $THREE (like all pump.fun coins) lives on Token-2022, so it was invisible. The backup path now reads both token programs and rides the same deep multi-provider RPC failover as the rest of the platform, so holder tiers, fee discounts, and quota boosts resolve correctly even when individual RPC providers are down.",+ "link": "/three",+ "tags": [+ "fix"+ ]+ },{"date": "2026-07-23","type": "update",@@ -48,6 +58,17 @@"improvement"]},+ {+ "date": "2026-07-23",+ "type": "update",+ "title": "The sniper learns from its own postmortem: conviction-crossing entries and smarter trailing stops",+ "summary": "Two upgrades shipped straight from the 90-trade analysis. First, a new oracle_crossing trigger: instead of judging a coin at launch, when the conviction scorer has no signal yet, an arm can now buy the moment a coin first crosses its conviction bar. Measured over the fleet window, that band pumped or graduated 77.5% of the time versus an 11.8% base rate, and the crossing lands a median of two minutes after launch. The formerly idle strict arm is re-armed on it with a sell-the-initials ladder. Second, trailing stops now arm only once a position has been above breakeven; armed underwater they only converted recoverable dips into locked losses while the hard stop-loss already capped the downside.",+ "link": "/blog/all-90-trades",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-07-22","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 2501396fe..693502b77 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -30,6 +30,14 @@<category>docs</category><description>The autonomous sniper fleet has closed 90 real-money trades across 8 strategies and 8 wallets, and we published every single one: entry thesis, exit, on-chain receipts, and an honest grade per trade. The deep dive also audits everything the fleet did not do: the 83,000 launches it observed and declined, proof the conviction scorer’s top band hits 77.5% winners at scale (and why zero of those coins were bought), the missed monsters that were invisible at minute zero, and a paperhands check showing every one of the 90 sells was vindicated. Full dataset downloadable as JSON.</description></item>+ <item>+ <title>Fixed: wallets showing $0 of $THREE on the tiers page</title>+ <link>https://three.ws/three</link>+ <guid isPermaLink="false">2026-07-23:Fixed: wallets showing $0 of $THREE on the tiers page</guid>+ <pubDate>Thu, 23 Jul 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Holders reported the site not recognising their $THREE balance: /three showed "You hold $0" (Member tier) for wallets with real bags, across Phantom, Solflare, and Brave Wallet. Root cause: when our primary balance provider ran out of quota, the backup on-chain read only queried the classic SPL token program, and $THREE (like all pump.fun coins) lives on Token-2022, so it was invisible. The backup path now reads both token programs and rides the same deep multi-provider RPC failover as the rest of the platform, so holder tiers, fee discounts, and quota boosts resolve correctly even when individual RPC providers are down.</description>+ </item><item><title>Opening a 3D object gives you a viewer, not a chatbot</title><link>https://three.ws/objects</link>@@ -38,6 +46,14 @@<category>improvement</category><description>Previewing a prop from the CC0 object library (a wrench, a vase, an ammo box) used to drop you into the embodied-agent surface, complete with an "Ask the agent" box and prompts like "Why are you embodied?" that make no sense for an inanimate object. Objects now open in a dedicated viewer mode: the agent chat and avatar controls are gone, replaced by the things you actually want for a 3D thing — Restyle to recolor or AI-restyle its materials, View in AR to place it in your room, and Download the CC0 GLB. Avatars are untouched and still open with the full agent experience.</description></item>+ <item>+ <title>The sniper learns from its own postmortem: conviction-crossing entries and smarter trailing stops</title>+ <link>https://three.ws/blog/all-90-trades</link>+ <guid isPermaLink="false">2026-07-23:The sniper learns from its own postmortem: conviction-crossing entries and smarter trailing stops</guid>+ <pubDate>Thu, 23 Jul 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Two upgrades shipped straight from the 90-trade analysis. First, a new oracle_crossing trigger: instead of judging a coin at launch, when the conviction scorer has no signal yet, an arm can now buy the moment a coin first crosses its conviction bar. Measured over the fleet window, that band pumped or graduated 77.5% of the time versus an 11.8% base rate, and the crossing lands a median of two minutes after launch. The formerly idle strict arm is re-armed on it with a sell-the-initials ladder. Second, trailing stops now arm only once a position has been above breakeven; armed underwater they only converted recoverable dips into locked losses while the hard stop-loss already capped the downside.</description>+ </item><item><title>Animation preview plays again on every clip page</title><link>https://three.ws/marketplace?tab=animations</link>diff --git a/tests/api/balances-helius-circuit.test.js b/tests/api/balances-helius-circuit.test.jsindex 414ee0872..550442915 100644--- a/tests/api/balances-helius-circuit.test.js+++ b/tests/api/balances-helius-circuit.test.js@@ -13,15 +13,28 @@ let fetchCalls = [];// URL-aware mock: routes by host so the multi-call fallback path (getBalance,// getTokenAccountsByOwner, Jupiter prices) all resolve without a strict queue.let heliusBehavior = 'quota'; // 'quota' | 'ok'+// What the public-RPC fallback returns for getTokenAccountsByOwner, per token+// program (the fallback must query BOTH: $THREE and other pump.fun mints are+// Token-2022, invisible to a classic-program-only query).+let fallbackTokenAccounts = []; // classic Tokenkeg program+let fallbackToken2022Accounts = []; // Token-2022 programvi.stubGlobal('fetch', (url, opts) => {const u = String(url);fetchCalls.push(u);- const ok = (status, body) => Promise.resolve({- ok: status >= 200 && status < 300,- status,- json: async () => body,- text: async () => (typeof body === 'string' ? body : JSON.stringify(body)),- });+ const ok = (status, body) => {+ const resp = {+ ok: status >= 200 && status < 300,+ status,+ statusText: '',+ headers: { get: () => 'application/json' },+ json: async () => body,+ text: async () => (typeof body === 'string' ? body : JSON.stringify(body)),+ };+ // The rotating fetch clones a failed response to scan its body for a quota+ // signal; mirror that surface like a real Response.+ resp.clone = () => resp;+ return Promise.resolve(resp);+ };if (u.includes('helius-rpc.com')) {if (heliusBehavior === 'quota') {return ok(429, { jsonrpc: '2.0', error: { code: -32429, message: 'max usage reached' } });@@ -31,7 +44,12 @@ vi.stubGlobal('fetch', (url, opts) => {if (u.includes('lite-api.jup.ag')) return ok(200, {});if (u.includes('mainnet-beta.solana.com') || (opts && /getBalance|getTokenAccountsByOwner/.test(String(opts.body)))) {const body = opts ? String(opts.body) : '';- if (body.includes('getTokenAccountsByOwner')) return ok(200, { result: { value: [] } });+ if (body.includes('getTokenAccountsByOwner')) {+ const accounts = body.includes('TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb')+ ? fallbackToken2022Accounts+ : fallbackTokenAccounts;+ return ok(200, { result: { value: accounts } });+ }return ok(200, { result: { value: 0 } }); // getBalance}return ok(200, {});@@ -48,6 +66,8 @@ const heliusHits = () => fetchCalls.filter((u) => u.includes('helius-rpc.com')).beforeEach(async () => {fetchCalls = [];heliusBehavior = 'quota';+ fallbackTokenAccounts = [];+ fallbackToken2022Accounts = [];process.env.HELIUS_API_KEY = 'test-key';__resetBalancesBreaker();// Distinct addresses per case dodge the 60s balance cache; clear to be safe.@@ -74,6 +94,48 @@ describe('balances Helius circuit breaker', () => {expect(heliusHits()).toBe(0);});+ it('still reads real token balances through the fallback chain while Helius quota is out', async () => {+ // The production regression behind "site shows You hold $0 of $THREE": with+ // Helius quota-exhausted, the fallback must surface the wallet's actual+ // holdings from BOTH token programs. $THREE is Token-2022, so a classic-+ // program-only query silently dropped it and zeroed every holder tier.+ fallbackTokenAccounts = [+ {+ account: {+ data: {+ parsed: {+ info: {+ mint: 'LEGACYsynthetic11111111111111111111111111111',+ tokenAmount: { uiAmount: 7, decimals: 6 },+ },+ },+ },+ },+ },+ ];+ fallbackToken2022Accounts = [+ {+ account: {+ data: {+ parsed: {+ info: {+ mint: 'THREEsynthetic111111111111111111111111111111',+ tokenAmount: { uiAmount: 25000, decimals: 6 },+ },+ },+ },+ },+ },+ ];+ const a = await getBalances({ chain: 'solana', address: ADDR_A });+ expect(a.chain).toBe('solana');+ expect(a.tokens).toHaveLength(2);+ const three = a.tokens.find((t) => t.mint === 'THREEsynthetic111111111111111111111111111111');+ expect(three?.amount).toBe(25000);+ const legacy = a.tokens.find((t) => t.mint === 'LEGACYsynthetic11111111111111111111111111111');+ expect(legacy?.amount).toBe(7);+ });+it('uses Helius normally when the quota is healthy', async () => {heliusBehavior = 'ok';const a = await getBalances({ chain: 'solana', address: ADDR_A });