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.

Add Oracle conviction to portfolio dashboard + global stats API

nirholas1014821e6e19
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9ede2115f..336ba2f95 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -32,6 +32,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Oracle Proof ✓ tab — gallery of verified high-conviction wins** — New Proof ✓ tab on the Oracle page shows every coin that the Oracle called strong or prime and that subsequently delivered — graduated to Raydium or hit ≥2× ATH. Each card shows the conviction score at call time, the four pillar breakdown, and the outcome ATH multiple. Filterable by tier and time window (7d / 30d / 90d). This is the edge made visible: every number is ground-truth, on-chain verifiable. (`/oracle`) `[feature]`
- **Oracle social signal — X posts now feed into coin conviction scores** — The Oracle's Narrative pillar now receives real-time social signal from X. When a coin's $SYMBOL is mentioned in a tweet, the post's reach and engagement — views, likes, retweets — translate into a virality boost that raises the Oracle's conviction score. KOL accounts (verified smart-money voices on X) apply a 1.5× multiplier. The POST /api/oracle/social endpoint accepts raw tweet batches from any scraper, and the three.surf chart tool ships a --push-social flag that pipes its tweet analysis directly into the Oracle after each run. (`/oracle`) `[feature, improvement]`
- **Oracle wallet drawer: trader profile and copy-trades links** — When you open a wallet from the Oracle's Top Wallets leaderboard, the drawer now shows 'Trader profile ↗' and 'Copy trades →' links below the track record — connecting the wallet reputation system directly to copy trading. The wallet list rows also gain a hover-reveal '→' button that opens the trader profile without needing to open the drawer first. (`/oracle`) `[improvement]`
+- **Portfolio: Oracle conviction for every token you hold** — The portfolio dashboard now shows Oracle conviction scores on Solana tokens. Each row gets a live badge showing the Oracle score and tier (prime / strong / lean). The pump.fun tokens table adds an Oracle column. And when you open any token's detail drawer, a conviction breakdown appears — score dial, pillar bars, and a link to the full Oracle analysis. Helps you make informed hold / sell decisions from the portfolio view. (`/dashboard/portfolio`) `[improvement]`
- **Pump Dashboard: live Oracle conviction panel on the main trading desk** — The Pump Dashboard now has a High Conviction panel alongside the live feed — showing the top 5 Oracle-scored coins (score ≥ 60) with their tier badge, 4-pillar bars, and a link to the Oracle drawer. The panel auto-refreshes every 90 seconds and pulses with a live indicator. Clicking any coin opens the full conviction breakdown. (`/pump-dashboard`) `[improvement]`
- **Radar drawer: Oracle conviction scores now inline with coin intelligence** — When you open a coin in the /radar drawer, it now shows the Oracle conviction score alongside the coin intelligence analysis — score, tier badge, and four pillar bars (pedigree/structure/narrative/momentum), with a link to the full Oracle breakdown. Data loads asynchronously so the drawer opens instantly. (`/radar`) `[improvement]`
- **Rich OG cards on every shared coin link — price, score, and live status in the preview** — Every /launches/<mint> page now generates a dynamic social card — visible in X, Telegram, Discord, Slack, and iMessage link previews. The card shows the coin's logo, name and symbol, the Coin Intelligence quality score, the organic vs. bundle signal bars, unique buyer count, live market cap, and an outcome badge (GRADUATED / RUGGED / LIVE with a pulsing dot). Every shared link becomes a signal at a glance — no click required. (`/launches`) `[improvement]`
diff --git a/api/oracle/stats.js b/api/oracle/stats.js
new file mode 100644
index 000000000..00ae20a78
--- /dev/null
+++ b/api/oracle/stats.js
@@ -0,0 +1,102 @@
+/**
+ * Oracle — global platform conviction stats.
+ *
+ * GET /api/oracle/stats?network=mainnet
+ *
+ * Returns a fast summary of the oracle engine's current state:
+ * scored_24h — coins scored in the last 24 h
+ * scored_total — all-time scored coins in oracle_conviction
+ * prime_count — coins currently sitting at prime tier (score ≥ 86)
+ * strong_count — coins at strong tier
+ * win_rate — % of resolved calls that were positive outcomes (ath ≥ 2 or graduated)
+ * total_resolved — how many calls have an outcome at all
+ * total_wins — resolved calls that were positive
+ * best_ath — highest ATH multiple ever recorded for an oracle-called coin
+ * open_actions — oracle_watch_actions rows still open (not yet settled)
+ * agents_armed — distinct agent_ids currently armed (armed = true)
+ *
+ * Public, no auth, aggressively cached (60s). Used by the dashboard
+ * overview card and the oracle landing-page hero.
+ */
+
+import { cors, json, method, wrap, rateLimited } from '../_lib/http.js';
+import { limits, clientIp } from '../_lib/rate-limit.js';
+import { sql } from '../_lib/db.js';
+
+const NETWORKS = new Set(['mainnet', 'devnet']);
+
+export default wrap(async (req, res) => {
+ if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;
+ if (!method(req, res, ['GET'])) return;
+
+ const rl = await limits.publicIp(clientIp(req));
+ if (!rl.success) return rateLimited(res, rl);
+
+ const params = new URL(req.url, `http://${req.headers.host || 'x'}`).searchParams;
+ const network = NETWORKS.has(params.get('network')) ? params.get('network') : 'mainnet';
+
+ const [convRow, actRow, outcomeRow, armedRow] = await Promise.all([
+ // Conviction table summary.
+ sql`
+ select
+ count(*) as scored_total,
+ count(*) filter (where scored_at >= now() - interval '24 hours') as scored_24h,
+ count(*) filter (where tier = 'prime') as prime_count,
+ count(*) filter (where tier = 'strong') as strong_count
+ from oracle_conviction
+ where network = ${network}
+ `.catch(() => [{}]),
+
+ // Open oracle_watch_actions (not yet settled).
+ sql`
+ select count(*) as open_actions
+ from oracle_watch_actions
+ where network = ${network}
+ and outcome = 'open'
+ `.catch(() => [{}]),
+
+ // Outcome win-rate: only rows where the oracle called the coin AND we have an outcome.
+ sql`
+ select
+ count(*) as total_resolved,
+ count(*) filter (where o.ath_multiple >= 2 or o.graduated) as total_wins,
+ round(max(o.ath_multiple)::numeric, 2) as best_ath
+ from oracle_conviction c
+ join pump_coin_outcomes o on o.mint = c.mint and o.network = c.network
+ where c.network = ${network}
+ `.catch(() => [{}]),
+
+ // Distinct armed agents.
+ sql`
+ select count(distinct agent_id) as agents_armed
+ from oracle_agent_watches
+ where network = ${network}
+ and armed = true
+ `.catch(() => [{}]),
+ ]);
+
+ const c = convRow[0] || {};
+ const a = actRow[0] || {};
+ const o = outcomeRow[0] || {};
+ const ar = armedRow[0] || {};
+
+ const totalResolved = Number(o.total_resolved) || 0;
+ const totalWins = Number(o.total_wins) || 0;
+ const winRate = totalResolved > 0 ? Math.round((totalWins / totalResolved) * 100) : null;
+
+ return json(res, 200, {
+ network,
+ scored_24h: Number(c.scored_24h) || 0,
+ scored_total: Number(c.scored_total) || 0,
+ prime_count: Number(c.prime_count) || 0,
+ strong_count: Number(c.strong_count) || 0,
+ open_actions: Number(a.open_actions) || 0,
+ total_resolved: totalResolved,
+ total_wins: totalWins,
+ win_rate: winRate,
+ best_ath: o.best_ath != null ? Number(o.best_ath) : null,
+ agents_armed: Number(ar.agents_armed) || 0,
+ }, {
+ 'cache-control': 'public, max-age=60, s-maxage=60, stale-while-revalidate=120',
+ });
+});
diff --git a/data/changelog.json b/data/changelog.json
index 6315dc060..c2a98b3d4 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. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-16",
+ "title": "Portfolio: Oracle conviction for every token you hold",
+ "summary": "The portfolio dashboard now shows Oracle conviction scores on Solana tokens. Each row gets a live badge showing the Oracle score and tier (prime / strong / lean). The pump.fun tokens table adds an Oracle column. And when you open any token's detail drawer, a conviction breakdown appears — score dial, pillar bars, and a link to the full Oracle analysis. Helps you make informed hold / sell decisions from the portfolio view.",
+ "tags": ["improvement"],
+ "link": "/dashboard/portfolio"
+ },
{
"date": "2026-06-16",
"title": "Copy trading: Oracle conviction gate",
diff --git a/public/changelog.json b/public/changelog.json
index bd1452580..8dfcd9e00 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-16T06:10:14.784Z",
+ "generated_at": "2026-06-16T06:10:51.426Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -271,6 +271,16 @@
"improvement"
]
},
+ {
+ "date": "2026-06-16",
+ "type": "update",
+ "title": "Portfolio: Oracle conviction for every token you hold",
+ "summary": "The portfolio dashboard now shows Oracle conviction scores on Solana tokens. Each row gets a live badge showing the Oracle score and tier (prime / strong / lean). The pump.fun tokens table adds an Oracle column. And when you open any token's detail drawer, a conviction breakdown appears — score dial, pillar bars, and a link to the full Oracle analysis. Helps you make informed hold / sell decisions from the portfolio view.",
+ "link": "/dashboard/portfolio",
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-06-16",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 36ec89321..a805d8222 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -214,6 +214,14 @@
<category>improvement</category>
<description>When you open a wallet from the Oracle's Top Wallets leaderboard, the drawer now shows 'Trader profile ↗' and 'Copy trades →' links below the track record — connecting the wallet reputation system directly to copy trading. The wallet list rows also gain a hover-reveal '→' button that opens the trader profile without needing to open the drawer first.</description>
</item>
+ <item>
+ <title>Portfolio: Oracle conviction for every token you hold</title>
+ <link>https://three.ws/dashboard/portfolio</link>
+ <guid isPermaLink="false">2026-06-16:Portfolio: Oracle conviction for every token you hold</guid>
+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The portfolio dashboard now shows Oracle conviction scores on Solana tokens. Each row gets a live badge showing the Oracle score and tier (prime / strong / lean). The pump.fun tokens table adds an Oracle column. And when you open any token's detail drawer, a conviction breakdown appears — score dial, pillar bars, and a link to the full Oracle analysis. Helps you make informed hold / sell decisions from the portfolio view.</description>
+ </item>
<item>
<title>Pump Dashboard: live Oracle conviction panel on the main trading desk</title>
<link>https://three.ws/pump-dashboard</link>
diff --git a/public/features.json b/public/features.json
index 45fb58f7f..a942b8eb7 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-16T05:55:19.126Z",
+ "generated_at": "2026-06-16T06:10:51.415Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/dashboard-next/pages/home.js b/src/dashboard-next/pages/home.js
index 38311be03..892b9ace2 100644
--- a/src/dashboard-next/pages/home.js
+++ b/src/dashboard-next/pages/home.js
@@ -356,13 +356,15 @@ async function loadTradingOverview(host) {
const cards = host.querySelector('#dnx-trading-cards');
- const [sniperRes, copyRes] = await Promise.allSettled([
+ const [sniperRes, copyRes, oracleRes] = await Promise.allSettled([
get('/api/sniper/strategy?limit=30'),
get('/api/copy/subscriptions'),
+ get('/api/oracle/stats'),
]);
const strategies = (sniperRes.status === 'fulfilled' ? sniperRes.value?.strategies : null) || [];
const subscriptions = (copyRes.status === 'fulfilled' ? copyRes.value?.subscriptions : null) || [];
+ const oStats = (oracleRes.status === 'fulfilled' ? oracleRes.value : null) || {};
const armedStrategies = strategies.filter((s) => s.enabled && !s.kill_switch_engaged);
const openPositions = strategies.reduce((n, s) => n + (Number(s.open_positions) || 0), 0);
@@ -375,6 +377,25 @@ async function loadTradingOverview(host) {
const pnlStr = `${pnlSign}${Math.abs(totalPnl) >= 1 ? totalPnl.toFixed(2) : totalPnl.toFixed(3)} ◎`;
const pnlClass = totalPnl >= 0 ? 'dnx-tc-pos' : 'dnx-tc-neg';
+ // Oracle card copy assembly.
+ const oScored24h = Number(oStats.scored_24h) || 0;
+ const oWinRate = oStats.win_rate != null ? oStats.win_rate : null;
+ const oBestAth = oStats.best_ath != null ? Number(oStats.best_ath) : null;
+ const oPrimeCount = Number(oStats.prime_count) || 0;
+ const oOpenActions = Number(oStats.open_actions) || 0;
+
+ const oValueText = oScored24h > 0
+ ? `${oScored24h.toLocaleString()} <span class="dnx-tc-unit">scored today</span>`
+ : `<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" style="margin-right:4px;vertical-align:text-bottom"><circle cx="7" cy="7" r="5"/><path d="M7 4.5v2.7l1.6 1.6"/></svg> Live`;
+ const oMeta1 = oWinRate != null
+ ? `<span class="dnx-tc-pos">${oWinRate}% win rate</span>`
+ : '<span class="dnx-tc-dim">Conviction scoring every coin</span>';
+ const oMeta2 = oBestAth != null
+ ? `<span>best ${oBestAth.toFixed(1)}× · ${oPrimeCount} prime</span>`
+ : oOpenActions > 0
+ ? `<span>${oOpenActions} open action${oOpenActions !== 1 ? 's' : ''}</span>`
+ : '<span class="dnx-tc-arm-cta">Arm an agent →</span>';
+
cards.innerHTML = `
<a class="dnx-tc" href="/dashboard/sniper">
<div class="dnx-tc-label">Sniper</div>
@@ -388,11 +409,8 @@ async function loadTradingOverview(host) {
</a>
<a class="dnx-tc" href="/oracle">
<div class="dnx-tc-label">Oracle</div>
- <div class="dnx-tc-value"><svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" style="margin-right:4px;vertical-align:text-bottom"><circle cx="7" cy="7" r="5"/><path d="M7 4.5v2.7l1.6 1.6"/></svg> Live</div>
- <div class="dnx-tc-meta">
- <span>Conviction scoring every coin</span>
- <span class="dnx-tc-arm-cta">Arm an agent →</span>
- </div>
+ <div class="dnx-tc-value">${oValueText}</div>
+ <div class="dnx-tc-meta">${oMeta1}${oMeta2}</div>
</a>
<a class="dnx-tc" href="/dashboard/copy">
<div class="dnx-tc-label">Copy trading</div>
diff --git a/src/dashboard-next/pages/portfolio.js b/src/dashboard-next/pages/portfolio.js
index 4ccf0300e..8a2b8bb29 100644
--- a/src/dashboard-next/pages/portfolio.js
+++ b/src/dashboard-next/pages/portfolio.js
@@ -504,14 +504,15 @@ function renderTableBody(section) {
? `<img src="${esc(t.logo)}" alt="" class="pf-token-logo" loading="lazy" />`
: `<div class="pf-token-logo pf-token-logo-ph">${esc((t.symbol || '?')[0])}</div>`;
const chainMeta = CHAIN[t.chain] || CHAIN.solana;
+ const isSolToken = t.chain === 'solana' && t.id && t.id !== 'native';
return `
- <tr class="pf-row" data-chain="${esc(t.chain)}" data-id="${esc(t.id)}" tabindex="0" role="row">
+ <tr class="pf-row" data-chain="${esc(t.chain)}" data-id="${esc(t.id)}" ${isSolToken ? `data-oracle-mint="${esc(t.id)}"` : ''} tabindex="0" role="row">
<td class="pf-td">
<div class="pf-token-cell">
${logoHtml}
<div>
- <div class="pf-token-symbol">${esc(t.symbol)} <span class="pf-token-chain-dot" style="background:${chainMeta.color}" title="${chainMeta.label}"></span></div>
+ <div class="pf-token-symbol">${esc(t.symbol)} <span class="pf-token-chain-dot" style="background:${chainMeta.color}" title="${chainMeta.label}"></span>${isSolToken ? '<span class="pf-oracle-badge"></span>' : ''}</div>
<div class="pf-token-name">${esc(t.name)}</div>
</div>
</div>
@@ -530,6 +531,8 @@ function renderTableBody(section) {
`;
}).join('');
+ enrichHoldingsOracle(tbody);
+
tbody.querySelectorAll('.pf-row').forEach((row) => {
const handler = () => {
const chain = row.dataset.chain;
@@ -542,6 +545,92 @@ function renderTableBody(section) {
});
}
+// ── Oracle conviction enrichment ──────────────────────────────────────────────
+
+const PF_TIER_COLOR = { prime: '#c084fc', strong: '#34d399', lean: '#fbbf24', watch: '#94a3b8', avoid: '#f87171' };
+
+async function batchOracleFetch(mints) {
+ if (!mints.length) return {};
+ const chunks = [];
+ for (let i = 0; i < mints.length; i += 20) chunks.push(mints.slice(i, i + 20));
+ const results = {};
+ try {
+ const resps = await Promise.all(
+ chunks.map((chunk) =>
+ fetch(`/api/oracle/batch?mints=${chunk.map(encodeURIComponent).join(',')}&network=mainnet`)
+ .then((r) => r.ok ? r.json() : null)
+ .catch(() => null),
+ ),
+ );
+ for (const resp of resps) {
+ if (resp?.results) Object.assign(results, resp.results);
+ }
+ } catch { /* non-fatal */ }
+ return results;
+}
+
+async function enrichHoldingsOracle(tbody) {
+ const rows = [...tbody.querySelectorAll('[data-oracle-mint]')];
+ if (!rows.length) return;
+ const mints = [...new Set(rows.map((r) => r.dataset.oracleMint).filter(Boolean))];
+ const results = await batchOracleFetch(mints);
+ for (const row of rows) {
+ const mint = row.dataset.oracleMint;
+ const d = results[mint];
+ if (!d || d.score == null) continue;
+ const badge = row.querySelector('.pf-oracle-badge');
+ if (!badge || badge.hasChildNodes()) continue;
+ const color = PF_TIER_COLOR[d.tier] || '#94a3b8';
+ badge.innerHTML = `<a class="pf-ob" href="/oracle?mint=${encodeURIComponent(mint)}" title="Oracle conviction: ${d.score} · ${d.tier}" onclick="event.stopPropagation()" style="color:${color}">◎ ${d.score}</a>`;
+ }
+}
+
+async function enrichPumpOracle(tbody) {
+ const cells = [...tbody.querySelectorAll('[data-pump-oracle]')];
+ if (!cells.length) return;
+ const mints = [...new Set(cells.map((c) => c.dataset.pumpOracle).filter(Boolean))];
+ const results = await batchOracleFetch(mints);
+ for (const cell of cells) {
+ const mint = cell.dataset.pumpOracle;
+ const d = results[mint];
+ if (!d || d.score == null) { cell.textContent = '—'; continue; }
+ const color = PF_TIER_COLOR[d.tier] || '#94a3b8';
+ cell.innerHTML = `<a class="pf-ob pf-ob-pump" href="/oracle?mint=${encodeURIComponent(mint)}" title="${d.score} · ${d.tier}" style="color:${color}">◎ ${d.score} <span style="font-size:9px;opacity:.8;text-transform:uppercase;letter-spacing:.05em">${d.tier}</span></a>`;
+ }
+}
+
+async function enrichDrawerOracle(host, mint) {
+ const slot = host.querySelector('[data-slot="oracle-slot"]');
+ if (!slot) return;
+ try {
+ const r = await fetch(`/api/oracle/coin?mint=${encodeURIComponent(mint)}`);
+ if (!r.ok) { slot.remove(); return; }
+ const data = await r.json();
+ if (!slot.isConnected) return;
+ const cv = data?.conviction;
+ if (!cv || cv.score == null) { slot.remove(); return; }
+ const color = PF_TIER_COLOR[cv.tier] || '#94a3b8';
+ const pillars = cv.pillars || {};
+ const pillarHtml = Object.entries(pillars).map(([k, v]) => v != null ? `
+ <div class="pf-oracle-pillar">
+ <span class="pf-oracle-pillar-label">${k}</span>
+ <div class="pf-oracle-pillar-track"><div class="pf-oracle-pillar-fill" style="width:${Math.min(100, Number(v))}%;background:${color}"></div></div>
+ <span class="pf-oracle-pillar-val">${Math.round(Number(v))}</span>
+ </div>` : '').join('');
+ slot.innerHTML = `
+ <div class="pf-drawer-label">Oracle conviction</div>
+ <div class="pf-oracle-block">
+ <div class="pf-oracle-dial">
+ <span class="pf-oracle-score" style="color:${color}">${Math.round(cv.score)}</span>
+ <span class="pf-oracle-max">/100</span>
+ <span class="pf-oracle-tier" style="color:${color}">${cv.tier || ''}</span>
+ </div>
+ ${pillarHtml ? `<div class="pf-oracle-pillars">${pillarHtml}</div>` : ''}
+ <a class="pf-oracle-link" href="/oracle?mint=${encodeURIComponent(mint)}" target="_blank" rel="noopener">Full conviction breakdown ↗</a>
+ </div>`;
+ } catch { /* non-fatal */ }
+}
+
function sortTokens(tokens, col, dir) {
return [...tokens].sort((a, b) => {
let va, vb;
@@ -646,9 +735,10 @@ function renderPumpTokens(pumpAgents) {
<thead><tr>
<th class="pf-th">Agent / Token</th>
<th class="pf-th right">Holders</th>
+ <th class="pf-th right">Oracle</th>
<th class="pf-th right"></th>
</tr></thead>
- <tbody>
+ <tbody id="pf-pump-tbody">
${pumpAgents.map((a) => {
const meta = a.meta?.pumpfun || a.meta?.token || {};
const mint = meta.mint || meta.address || meta.ca || '';
@@ -658,6 +748,7 @@ function renderPumpTokens(pumpAgents) {
<tr class="pf-row">
<td class="pf-td"><div class="pf-token-symbol" style="font-size:14px">$${esc(String(ticker).toUpperCase())}</div><div class="pf-token-name">${esc(a.name || a.display_name || '')}</div></td>
<td class="pf-td right mono">${esc(String(holders))}</td>
+ <td class="pf-td right"><span ${mint ? `data-pump-oracle="${esc(mint)}"` : ''} class="pf-oracle-cell"></span></td>
<td class="pf-td right">${mint ? `<a href="https://pump.fun/coin/${encodeURIComponent(mint)}" target="_blank" rel="noopener" class="pf-link">View ↗</a>` : ''}</td>
</tr>
`;
@@ -666,6 +757,8 @@ function renderPumpTokens(pumpAgents) {
</table>
</div>
`;
+ const pumpTbody = section.querySelector('#pf-pump-tbody');
+ if (pumpTbody) enrichPumpOracle(pumpTbody);
return section;
}
@@ -715,7 +808,7 @@ async function openAssetDrawer(token) {
try {
const data = await get(`/api/portfolio/asset?chain=${encodeURIComponent(token.chain)}&id=${encodeURIComponent(token.id)}&days=30`);
- renderDrawerContent(content, data);
+ renderDrawerContent(content, data, token);
} catch (err) {
content.innerHTML = `
<div class="pf-drawer-head">
@@ -732,7 +825,7 @@ async function openAssetDrawer(token) {
}
}
-function renderDrawerContent(host, data) {
+function renderDrawerContent(host, data, token = null) {
const market = data.market || {};
const symbol = data.symbol || '?';
const chain = CHAIN[data.chain] || CHAIN.solana;
@@ -786,6 +879,8 @@ function renderDrawerContent(host, data) {
</div>
` : ''}
+ <div data-slot="oracle-slot"></div>
+
${data.holdings?.length ? `
<div class="pf-drawer-label">Held in</div>
<div class="pf-drawer-holdings">
@@ -846,6 +941,10 @@ function renderDrawerContent(host, data) {
const form = host.querySelector('[data-slot="send-form"]');
if (form) mountSendForm(form, data);
+
+ // Oracle conviction — Solana non-native tokens only; fire-and-forget
+ const oracleMint = token?.chain === 'solana' && token?.id && token.id !== 'native' ? token.id : null;
+ if (oracleMint) enrichDrawerOracle(host, oracleMint);
}
// ── Asset price chart ─────────────────────────────────────────────────────
@@ -1273,6 +1372,26 @@ function injectStyles() {
.pf-send-ok a { color:var(--nxt-success); }
.pf-send-err { color:var(--nxt-danger); }
+/* ── Oracle conviction badges ── */
+.pf-oracle-badge { display:inline-flex; align-items:center; margin-left:5px; vertical-align:middle; }
+.pf-ob { font-size:10.5px; font-weight:700; font-variant-numeric:tabular-nums; font-family:${MONO}; text-decoration:none; opacity:.85; transition:opacity .12s; white-space:nowrap; }
+.pf-ob:hover { opacity:1; text-decoration:underline; }
+.pf-ob-pump { display:inline-flex; align-items:center; gap:3px; }
+.pf-oracle-cell { display:inline-flex; }
+.pf-oracle-block { display:flex; flex-direction:column; gap:10px; padding:14px; border:1px solid var(--nxt-stroke); border-radius:10px; background:rgba(255,255,255,0.02); margin-bottom:4px; }
+.pf-oracle-dial { display:flex; align-items:baseline; gap:4px; }
+.pf-oracle-score { font-size:26px; font-weight:800; font-variant-numeric:tabular-nums; letter-spacing:-0.02em; }
+.pf-oracle-max { font-size:13px; color:var(--nxt-ink-fade); }
+.pf-oracle-tier { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; margin-left:8px; }
+.pf-oracle-pillars { display:flex; flex-direction:column; gap:5px; }
+.pf-oracle-pillar { display:grid; grid-template-columns:68px 1fr 28px; align-items:center; gap:8px; font-size:11px; }
+.pf-oracle-pillar-label { color:var(--nxt-ink-fade); text-transform:capitalize; }
+.pf-oracle-pillar-track { height:4px; border-radius:2px; background:rgba(255,255,255,0.06); overflow:hidden; }
+.pf-oracle-pillar-fill { height:100%; border-radius:2px; transition:width .3s; }
+.pf-oracle-pillar-val { color:var(--nxt-ink-dim); text-align:right; font-variant-numeric:tabular-nums; }
+.pf-oracle-link { font-size:12px; color:var(--nxt-ink-dim); text-decoration:none; }
+.pf-oracle-link:hover { color:var(--nxt-ink); text-decoration:underline; }
+
/* ── Responsive ── */
@media (max-width: 760px) {
.pf-hero-top { flex-direction:column; }
diff --git a/vercel.json b/vercel.json
index b6e381382..b1a7a811f 100644
--- a/vercel.json
+++ b/vercel.json
@@ -203,6 +203,10 @@
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 15
},
+ "api/oracle/stats.js": {
+ "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
+ "maxDuration": 15
+ },
"api/copy/executions.js": {
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 30
@@ -1889,6 +1893,10 @@
"src": "/api/oracle/batch",
"dest": "/api/oracle/batch.js"
},
+ {
+ "src": "/api/oracle/stats",
+ "dest": "/api/oracle/stats.js"
+ },
{
"src": "/api/copy/executions",
"dest": "/api/copy/executions.js"