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
feat(three-token): credit DEXTools on the $THREE page with its live chart and every Social Boost buyback win
nirholas5a2174ff057b
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 1965a90ca..c7d60dc0a 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- **Granite Guardian now answers on three.ws, not just in the docs**: The governance check that screens what an agent is asked to do, and vetoes it when the request is a jailbreak, harmful, or fraudulent, runs on IBM Granite Guardian. It was built to call IBM's hosted watsonx.ai service, so on our live site it answered with a not-configured error, and the new agent identity check quietly skipped itself for the same reason. IBM publishes Granite Guardian's weights openly, so we now run the model ourselves on a dedicated GPU as a second lane: watsonx still leads wherever it is set up, and our own copy answers whenever it is not. Every verdict now says which model and which lane produced it. The identity check also compares a new agent against existing ones using the site's regular embedding service when Granite embeddings are unavailable; it lists the look-alikes it finds but only scores them on Granite, because that is what its thresholds were tuned on. (`/docs/ibm`) `[fix, infra]`- **Paid endpoints now describe themselves the way marketplaces expect**: When an agent or a marketplace asks one of our paid endpoints what it costs, the answer also explains how to call it and what comes back. Around sixty endpoints were sending that explanation in an older layout, or in one that did not match its own rules, which is enough for a marketplace to skip the listing without saying why. Every paid endpoint now sends it in the current standard layout, checked against its own rules. We also added a tool that tests our endpoints with the same checklist a marketplace validator uses, so a listing problem shows up on our side first. (`/docs/x402-dev-tools`) `[improvement, fix]`- **Paid x402 endpoints are answering again**: For several hours on September 18, nearly every paid endpoint on three.ws, the x402 discovery document at /.well-known/x402, the payment facilitator and the MCP server answered with a server error instead of a price. A routine update to the library behind wallet sign-in changed what it needs at startup, and our code tripped over it the moment it loaded, before any request could be served. Agents and marketplace validators that probed us saw a broken seller. The sign-in code now supplies what the library expects, returning buyers can sign back in to what they already paid for exactly as before, and the deploy checks now refuse to ship when the tested dependencies differ from the ones the live site will run, which is how this got past us. (`/docs/x402`) `[fix, infra]`+- **The $THREE page now has a live DEXTools chart and the Social Boost wins**: The $THREE page shows a live candle chart of the three / SOL pair, drawn by DEXTools. Below the platform's own buybacks there is a new section for the community's: the three DEXTools Social Boost prizes $THREE has won so far, $11,382 of buybacks in total, each with a link to its receipt on DEXTools. Social Boost ranks tokens by visits to their DEXTools page, so the section also links straight there. Every visit counts toward the next win. (`/three-token`) `[feature, improvement]`## 2026-09-17diff --git a/blog/three-ws-dextools-social-boost-buyback.html b/blog/three-ws-dextools-social-boost-buyback.htmlindex ddeb7aa03..c87de99c2 100644--- a/blog/three-ws-dextools-social-boost-buyback.html+++ b/blog/three-ws-dextools-social-boost-buyback.html@@ -43,7 +43,7 @@blockquote { margin: 0 0 18px; padding: 16px 20px; border-left: 3px solid rgba(154,212,255,.4); background: rgba(154,212,255,.04); border-radius: 0 10px 10px 0; color: #d8d8ee; font-size: 16px; line-height: 1.65; }</style><meta name="twitter:image" content="https://three.ws/og-image.png">- <script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"three.ws Wins DEXTools Social Boost: $5,543 $three Buyback","description":"three.ws is DEXTools","image":"https://three.ws/og-image.png","datePublished":"2026-06-08T12:00:00.000Z","dateModified":"2026-06-08T12:00:00.000Z","author":{"@type":"Organization","name":"three.ws","url":"https://three.ws"},"publisher":{"@type":"Organization","name":"three.ws","url":"https://three.ws","logo":{"@type":"ImageObject","url":"https://three.ws/og-image.png"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://three.ws/blog/three-ws-dextools-social-boost-buyback"},"keywords":"three.ws, DEXTools, Social Boost, $THREE, $three, buyback, leaderboard, Solana, 3D agents"}</script>+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"three.ws Wins DEXTools Social Boost: $5,543 $three Buyback","description":"three.ws is DEXTools","image":"https://three.ws/og-image.png","datePublished":"2026-06-08T12:00:00.000Z","dateModified":"2026-09-18T12:00:00.000Z","author":{"@type":"Organization","name":"three.ws","url":"https://three.ws"},"publisher":{"@type":"Organization","name":"three.ws","url":"https://three.ws","logo":{"@type":"ImageObject","url":"https://three.ws/og-image.png"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://three.ws/blog/three-ws-dextools-social-boost-buyback"},"keywords":"three.ws, DEXTools, Social Boost, $THREE, $three, buyback, leaderboard, Solana, 3D agents"}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://three.ws/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https://three.ws/blog"},{"@type":"ListItem","position":3,"name":"three.ws Wins DEXTools Social Boost: $5,543 $three Buyback","item":"https://three.ws/blog/three-ws-dextools-social-boost-buyback"}]}</script></head><body>@@ -66,6 +66,17 @@<p>DEXTools is one of the most-used real-time trading and analytics platforms in DeFi, tracking pairs across every major chain. Its <a href="https://www.dextools.io/app/social-boost" rel="noopener">Social Boost</a> program rewards the projects with the strongest community engagement each week. The winner receives a buyback executed directly by DEXTools, which acquires and holds the project's token.</p><p>This week, that community is three.ws. The result is a $5,543 buyback of <strong>$three</strong> and a DEXTools wallet position that now totals 2.47M tokens.</p>+ <h2>Two daily wins the same week</h2>+ <p>The weekly prize capped a run. Social Boost also pays a daily winner, and $three took that spot twice in the days before. Each win has its own page on DEXTools:</p>+ <ul>+ <li><strong>June 6, 2026:</strong> daily winner, <a href="https://www.dextools.io/app/solana/pair-explorer/CnK82s8exdsK9nwqQ55kd9wcxoA22NwTchZJCBdu8LDa?social-boost=daily-2026-06-06" rel="noopener">$3,649 buyback</a></li>+ <li><strong>June 4, 2026:</strong> daily winner, <a href="https://www.dextools.io/app/solana/pair-explorer/CnK82s8exdsK9nwqQ55kd9wcxoA22NwTchZJCBdu8LDa?social-boost=daily-2026-06-04" rel="noopener">$2,190 buyback</a></li>+ </ul>+ <p>Together with the weekly prize, that is <strong>$11,382 of $three bought by DEXTools</strong> across three wins. The <a href="/three-token#tk-social-boost">$THREE page</a> keeps the full list with a receipt for each, next to a live DEXTools chart of the three / SOL pair.</p>++ <h2>How to help win the next one</h2>+ <p>Social Boost ranks tokens by daily and weekly visits to their DEXTools pair page. Checking the $three chart on DEXTools is the whole job: open <a href="https://www.dextools.io/app/solana/pair-explorer/CnK82s8exdsK9nwqQ55kd9wcxoA22NwTchZJCBdu8LDa" rel="noopener">three / SOL on DEXTools</a>, and every visit counts toward the next buyback.</p>+<h2>Why it matters</h2><p>Buybacks reduce circulating supply held by sellers and concentrate it in a long-term holder. A buyback driven by a third-party platform like DEXTools is also a signal: it reflects measurable community activity around three.ws across DeFi's most-watched analytics surface. The win puts three.ws on the <a href="https://www.dextools.io/app/social-boost" rel="noopener">Social Boost leaderboard</a>, in front of the traders and builders who use DEXTools to find what's moving.</p><p>It builds on the buyback-and-burn mechanism at the core of the three.ws economy, where agent revenue is routed into purchasing and removing $three from circulation. The DEXTools buyback adds external demand on top of that.</p>@@ -81,6 +92,8 @@<ul><li>DEXTools announcement: <a href="https://x.com/DEXToolsApp/status/2064037499060555807" rel="noopener">@DEXToolsApp</a></li><li>Social Boost leaderboard: <a href="https://www.dextools.io/app/social-boost" rel="noopener">dextools.io/app/social-boost</a></li>+ <li>$three on DEXTools: <a href="https://www.dextools.io/app/solana/pair-explorer/CnK82s8exdsK9nwqQ55kd9wcxoA22NwTchZJCBdu8LDa" rel="noopener">three / SOL pair explorer</a></li>+ <li>Live chart and every win: <a href="/three-token#tk-social-boost">three.ws/three-token</a></li><li>Project site: <a href="https://three.ws" rel="noopener">three.ws</a></li></ul>diff --git a/data/changelog.json b/data/changelog.jsonindex 605a191d7..3e12c5031 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,16 @@{"$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-09-18",+ "title": "The $THREE page now has a live DEXTools chart and the Social Boost wins",+ "summary": "The $THREE page shows a live candle chart of the three / SOL pair, drawn by DEXTools. Below the platform's own buybacks there is a new section for the community's: the three DEXTools Social Boost prizes $THREE has won so far, $11,382 of buybacks in total, each with a link to its receipt on DEXTools. Social Boost ranks tokens by visits to their DEXTools page, so the section also links straight there. Every visit counts toward the next win.",+ "tags": [+ "feature",+ "improvement"+ ],+ "link": "/three-token"+ },{"date": "2026-09-18","title": "Paid endpoints now describe themselves the way marketplaces expect",diff --git a/data/pages.json b/data/pages.jsonindex 99e379221..695d31cc8 100644--- a/data/pages.json+++ b/data/pages.json@@ -2462,7 +2462,7 @@{"path": "/three-token","title": "$THREE Token",- "description": "The $THREE protocol token: live price, bonding-curve chart, streaming trades, and one-click buy.",+ "description": "The $THREE protocol token: live price, a live DEXTools chart, streaming trades, programmatic buybacks, DEXTools Social Boost wins, and one-click buy.","priority": 0.8,"changefreq": "daily"},@@ -6151,7 +6151,7 @@"description": "three.ws is DEXTools' Social Boost winner of the week, earning a $5,543 buyback. The DEXTools wallet now holds 2.47M $three.","priority": 0.6,"changefreq": "monthly",- "lastmod": "2026-06-08",+ "lastmod": "2026-09-18","added": "2026-06-09"},{diff --git a/docs/listings.md b/docs/listings.mdindex 127c39371..8b44030e2 100644--- a/docs/listings.md+++ b/docs/listings.md@@ -112,6 +112,20 @@ The badge itself is one shared component ([src/pump/verified-badge.js](../src/puHackerNoon is one of the world's largest independent tech publications, read by millions of developers and founders monthly. Every three.ws announcement is pulled automatically from [`three.ws/rss/announcements.xml`](https://three.ws/rss/announcements.xml) into the HackerNoon drafts queue. A draft only goes public once it is submitted and passes HackerNoon's editorial review, and it then carries a canonical URL pointing back to three.ws. See [syndication setup](/docs/syndication#hackernoon) for technical details.+### DEXTools++$THREE trades on DEXTools as the [three / SOL pair](https://www.dextools.io/app/solana/pair-explorer/CnK82s8exdsK9nwqQ55kd9wcxoA22NwTchZJCBdu8LDa), and the public [/three-token](/three-token) page draws its live chart with DEXTools' own chart widget.++DEXTools also runs [Social Boost](https://www.dextools.io/app/social-boost), which ranks tokens by daily and weekly visits to their pair page and buys the winner's token on the open market. $THREE has won it three times (checked 2026-09-18):++| Date | Prize | Receipt |+|---|---|---|+| 2026-06-08 | Weekly winner, $5,543 buyback | [DEXTools announcement](https://x.com/DEXToolsApp/status/2064037499060555807) |+| 2026-06-06 | Daily winner, $3,649 buyback | [Winner page](https://www.dextools.io/app/solana/pair-explorer/CnK82s8exdsK9nwqQ55kd9wcxoA22NwTchZJCBdu8LDa?social-boost=daily-2026-06-06) |+| 2026-06-04 | Daily winner, $2,190 buyback | [Winner page](https://www.dextools.io/app/solana/pair-explorer/CnK82s8exdsK9nwqQ55kd9wcxoA22NwTchZJCBdu8LDa?social-boost=daily-2026-06-04) |++The same list renders on [/three-token](/three-token#tk-social-boost) from one record, [src/pump/dextools-social-boost.js](../src/pump/dextools-social-boost.js). DEXTools publishes no API for past winners, so a new win is added there by hand (newest first, with its receipt) and mirrored in this table. Story: [three.ws Wins DEXTools Social Boost](/blog/three-ws-dextools-social-boost-buyback).+---## Open Sourcediff --git a/public/changelog-recent.json b/public/changelog-recent.jsonindex 1b59fc148..0822874f6 100644--- a/public/changelog-recent.json+++ b/public/changelog-recent.json@@ -1,11 +1,11 @@{- "generated_at": "2026-09-18T07:48:36.343Z",+ "generated_at": "2026-09-18T08:52:43.327Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws","url": "https://three.ws"},- "total": 3704,+ "total": 3705,"complete": false,"full_feed": "/changelog.json","entries": [@@ -42,6 +42,17 @@"infra"]},+ {+ "date": "2026-09-18",+ "type": "update",+ "title": "The $THREE page now has a live DEXTools chart and the Social Boost wins",+ "summary": "The $THREE page shows a live candle chart of the three / SOL pair, drawn by DEXTools. Below the platform's own buybacks there is a new section for the community's: the three DEXTools Social Boost prizes $THREE has won so far, $11,382 of buybacks in total, each with a link to its receipt on DEXTools. Social Boost ranks tokens by visits to their DEXTools page, so the section also links straight there. Every visit counts toward the next win.",+ "link": "/three-token",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-09-17","type": "launch",@@ -1609,17 +1620,6 @@"fix","improvement"]- },- {- "date": "2026-09-08",- "type": "update",- "title": "The Agent Economy page is readable on a phone, and its x402 services finally have names",- "summary": "On a narrow screen the page laid itself out at desktop width and the browser quietly cut off two thirds of every section, so most of the content was simply unreachable on a phone. It now fits the screen at every size. The live x402 service list was also close to useless: every one of the ninety endpoints was labelled \"Service\", the price sat next to a raw token contract address, and the network read \"eip155:8453\" instead of \"Base\". Each row now carries a real name, its endpoint address, a clean price and a readable chain, an endpoint that takes path parameters no longer pretends to be a clickable page, and the list opens with a screenful you can expand to all of them. The three empty states tell you where to go next, and the services counter reports the true number instead of \"40+\".",- "link": "/economy",- "tags": [- "fix",- "improvement"- ]}]}diff --git a/public/changelog.json b/public/changelog.jsonindex 6ac5dca4d..fe820a5f3 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-09-18T07:48:36.274Z",+ "generated_at": "2026-09-18T08:52:43.272Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -39,6 +39,17 @@"infra"]},+ {+ "date": "2026-09-18",+ "type": "update",+ "title": "The $THREE page now has a live DEXTools chart and the Social Boost wins",+ "summary": "The $THREE page shows a live candle chart of the three / SOL pair, drawn by DEXTools. Below the platform's own buybacks there is a new section for the community's: the three DEXTools Social Boost prizes $THREE has won so far, $11,382 of buybacks in total, each with a link to its receipt on DEXTools. Social Boost ranks tokens by visits to their DEXTools page, so the section also links straight there. Every visit counts toward the next win.",+ "link": "/three-token",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-09-17","type": "launch",diff --git a/public/changelog.xml b/public/changelog.xmlindex 0ad21abb5..8a633394a 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -30,6 +30,14 @@<category>fix</category><description>For several hours on September 18, nearly every paid endpoint on three.ws, the x402 discovery document at /.well-known/x402, the payment facilitator and the MCP server answered with a server error instead of a price. A routine update to the library behind wallet sign-in changed what it needs at startup, and our code tripped over it the moment it loaded, before any request could be served. Agents and marketplace validators that probed us saw a broken seller. The sign-in code now supplies what the library expects, returning buyers can sign back in to what they already paid for exactly as before, and the deploy checks now refuse to ship when the tested dependencies differ from the ones the live site will run, which is how this got past us.</description></item>+ <item>+ <title>The $THREE page now has a live DEXTools chart and the Social Boost wins</title>+ <link>https://three.ws/three-token</link>+ <guid isPermaLink="false">2026-09-18:The $THREE page now has a live DEXTools chart and the Social Boost wins</guid>+ <pubDate>Fri, 18 Sep 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>The $THREE page shows a live candle chart of the three / SOL pair, drawn by DEXTools. Below the platform's own buybacks there is a new section for the community's: the three DEXTools Social Boost prizes $THREE has won so far, $11,382 of buybacks in total, each with a link to its receipt on DEXTools. Social Boost ranks tokens by visits to their DEXTools page, so the section also links straight there. Every visit counts toward the next win.</description>+ </item><item><title>Agent Wallet Agreement</title><link>https://three.ws/legal/agent-wallet</link>diff --git a/public/features.json b/public/features.jsonindex 8a238196c..fd1620663 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-09-18T07:48:36.227Z",+ "generated_at": "2026-09-18T08:52:43.245Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",@@ -2990,7 +2990,7 @@{"path": "/three-token","title": "$THREE Token",- "description": "The $THREE protocol token: live price, bonding-curve chart, streaming trades, and one-click buy.",+ "description": "The $THREE protocol token: live price, a live DEXTools chart, streaming trades, programmatic buybacks, DEXTools Social Boost wins, and one-click buy.","added": null,"auth": null,"indexable": true,diff --git a/public/llms-full.txt b/public/llms-full.txtindex d23f0ee9c..1d5574481 100644--- a/public/llms-full.txt+++ b/public/llms-full.txt@@ -1825,7 +1825,7 @@ The day's crypto news grouped into the handful of stories that actually matter:URL: https://three.ws/three-token-The $THREE protocol token: live price, bonding-curve chart, streaming trades, and one-click buy.+The $THREE protocol token: live price, a live DEXTools chart, streaming trades, programmatic buybacks, DEXTools Social Boost wins, and one-click buy.### x402 Catalogdiff --git a/public/llms.txt b/public/llms.txtindex 7712361d3..ccd596a54 100644--- a/public/llms.txt+++ b/public/llms.txt@@ -320,7 +320,7 @@ On-chain features: pay-per-call, token launches, vanity wallets.- [Crypto News](https://three.ws/markets/news): Live crypto news aggregated natively from 192 publisher feeds in 18 languages: filter by category (Bitcoin, DeFi, security, regulation, and more), pick a language, search headlines, and open any story in a rich reader with summary, key points, sentiment, and related coverage.- [Crypto News Archive](https://three.ws/markets/archive): The largest open crypto-news archive: 660,000+ articles from September 2017 to today, refreshed hourly from the live feed, in English and Chinese: searchable by keyword, ticker, source, sentiment, date, and language.- [Crypto News Digest](https://three.ws/markets/digest): The day's crypto news grouped into the handful of stories that actually matter: each with a plain-language summary, a market stance, the tickers involved, and every outlet that covered it. Clustered from 38 live publisher feeds.-- [$THREE Token](https://three.ws/three-token): The $THREE protocol token: live price, bonding-curve chart, streaming trades, and one-click buy.+- [$THREE Token](https://three.ws/three-token): The $THREE protocol token: live price, a live DEXTools chart, streaming trades, programmatic buybacks, DEXTools Social Boost wins, and one-click buy.- [x402 Catalog](https://three.ws/x402): A live catalog of pay-per-call APIs settled on-chain in USDC over the x402 protocol. Search, inspect the schema, and run any endpoint.- [Coin Communities](https://three.ws/communities): Pick a coin, drop in an avatar, and walk around its world with everyone else holding it. Each coin is its own live 3D community.- [Play](https://three.ws/play): Jump into a live coin community world and explore it with your avatar.diff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex c37226d51..3937f6ffb 100644--- a/public/sitemap/index.html+++ b/public/sitemap/index.html@@ -2305,7 +2305,7 @@<a href="/three-token"><span class="sm-title">$THREE Token</span><span class="sm-path">/three-token</span>- <span class="sm-desc">The $THREE protocol token: live price, bonding-curve chart, streaming trades, and one-click buy.</span>+ <span class="sm-desc">The $THREE protocol token: live price, a live DEXTools chart, streaming trades, programmatic buybacks, DEXTools Social Boost wins, and one-click buy.</span></a></li><li>diff --git a/src/pump/dextools-social-boost.test.js b/src/pump/dextools-social-boost.test.jsnew file mode 100644index 000000000..7f7a729a8--- /dev/null+++ b/src/pump/dextools-social-boost.test.js@@ -0,0 +1,46 @@+// The Social Boost record is hand-kept, so these guard the mistakes a hand edit+// makes: a win out of order, a receipt that points somewhere other than+// DEXTools' own pages, or a pair URL that drifts from the pair constant.++import { describe, it, expect } from 'vitest';+import {+ THREE_DEXTOOLS_PAIR,+ DEXTOOLS_PAIR_URL,+ SOCIAL_BOOST_WINS,+ DEXTOOLS_HOLDING,+ socialBoostSummary,+} from './dextools-social-boost.js';++describe('DEXTools Social Boost record', () => {+ it('links the pair explorer for the $THREE pair', () => {+ expect(THREE_DEXTOOLS_PAIR).toMatch(/^[1-9A-HJ-NP-Za-km-z]{32,44}$/);+ expect(DEXTOOLS_PAIR_URL).toBe(`https://www.dextools.io/app/solana/pair-explorer/${THREE_DEXTOOLS_PAIR}`);+ });++ it('lists wins newest first, each with a positive prize and a real day', () => {+ const dates = SOCIAL_BOOST_WINS.map((w) => w.date);+ expect(dates).toEqual([...dates].sort().reverse());+ for (const w of SOCIAL_BOOST_WINS) {+ expect(['daily', 'weekly']).toContain(w.period);+ expect(w.prizeUsd).toBeGreaterThan(0);+ expect(new Date(`${w.date}T00:00:00Z`).toISOString().slice(0, 10)).toBe(w.date);+ }+ });++ it('gives every win a public receipt, and a daily win its own DEXTools winner page', () => {+ for (const w of SOCIAL_BOOST_WINS) {+ const url = new URL(w.receipt);+ expect(url.protocol).toBe('https:');+ if (w.period === 'daily') {+ expect(w.receipt.startsWith(DEXTOOLS_PAIR_URL)).toBe(true);+ expect(url.searchParams.get('social-boost')).toBe(`daily-${w.date}`);+ }+ }+ });++ it('summarises the record', () => {+ expect(socialBoostSummary()).toEqual({ count: 3, totalUsd: 11382, largestUsd: 5543 });+ expect(socialBoostSummary([])).toEqual({ count: 0, totalUsd: 0, largestUsd: 0 });+ expect(DEXTOOLS_HOLDING.tokens).toBeGreaterThan(0);+ });+});diff --git a/src/three-token-page.js b/src/three-token-page.jsindex aa138137e..27b71d913 100644--- a/src/three-token-page.js+++ b/src/three-token-page.js@@ -12,6 +12,17 @@ import { openSwapModal } from './swap-jupiter.js';import { trackFunnelStep, ANALYTICS_EVENTS } from './analytics.js';import { emptyStateHTML, errorStateHTML, ensureStateKitStyles } from './shared/state-kit.js';import { paintVerifiedBadge } from './pump/verified-badge.js';+import { chartEmbedUrls } from './shared/chart-embeds.js';+import { watchEmbed, embedFallbackNode } from './shared/embed-guard.js';+import {+ THREE_DEXTOOLS_PAIR,+ DEXTOOLS_PAIR_URL,+ SOCIAL_BOOST_LEADERBOARD_URL,+ SOCIAL_BOOST_STORY_PATH,+ SOCIAL_BOOST_WINS,+ DEXTOOLS_HOLDING,+ socialBoostSummary,+} from './pump/dextools-social-boost.js';const SOL_MINT = 'So11111111111111111111111111111111111111112';const PUMP_URL = `https://pump.fun/coin/${THREE_MINT}`;@@ -166,8 +177,21 @@ function injectStyles() {.tk-bb-run-amt b { color:#4ade80; font-weight:700; }.tk-bb-run a { color:#7CC4FF; text-decoration:none; justify-self:end; white-space:nowrap; }.tk-bb-run a:hover { text-decoration:underline; }+ .tk-bb-lead a { color:#7CC4FF; text-decoration:none; } .tk-bb-lead a:hover { text-decoration:underline; }+ .tk-dt-cta { margin:0 0 4px; }+ .tk-chart { margin-bottom:18px; }+ .tk-chart-h { display:flex; align-items:center; justify-content:space-between; gap:12px; }+ .tk-chart-h a { color:#7CC4FF; text-decoration:none; text-transform:none; letter-spacing:0; font-size:12.5px; } .tk-chart-h a:hover { text-decoration:underline; }+ .tk-chart-host { position:relative; height:clamp(340px,52vh,520px); border-radius:10px; overflow:hidden; background:#0e0e12; }+ .tk-chart-skel { position:absolute; inset:0; transition:opacity .3s ease; }+ .tk-chart-frame { position:absolute; inset:0; width:100%; height:100%; border:0; opacity:0; transition:opacity .3s ease; }+ .tk-chart-host.ready .tk-chart-frame { opacity:1; }+ .tk-chart-host.ready .tk-chart-skel { opacity:0; }+ .tk-chart-state { height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center; padding:20px; color:#9a9aa3; font-size:13.5px; line-height:1.55; }+ .tk-chart-state p { margin:0; max-width:420px; }+ .tk-chart-state a { color:#7CC4FF; text-decoration:none; } .tk-chart-state a:hover { text-decoration:underline; }@media (max-width:560px){ .tk-bb-head { grid-template-columns:repeat(2,1fr); gap:8px; } }- @media (prefers-reduced-motion: reduce){ html { scroll-behavior:auto; } .tk-trade.in { animation:none; } .tk-skel { animation:none; } .tk-bb-bar span { transition:none; } .tk-why-card { transition:none; } }+ @media (prefers-reduced-motion: reduce){ html { scroll-behavior:auto; } .tk-trade.in { animation:none; } .tk-skel { animation:none; } .tk-bb-bar span { transition:none; } .tk-why-card { transition:none; } .tk-chart-skel, .tk-chart-frame { transition:none; } }`;const el = document.createElement('style');el.textContent = css;@@ -406,6 +430,77 @@ function startTradeTape(tapeEl, statusEl) {return () => { stopped = true; clearInterval(timer); };}+// ── live chart: DEXTools' own widget for the three / SOL pair ────────────────+// The URL shape comes from the shared chart-embeds registry. A cross-origin+// frame cannot report its own failure, so the embed guard swaps in a designed+// fallback, and the card header links to the same chart on DEXTools either way.+function mountDextoolsChart(host) {+ const urls = chartEmbedUrls('dextools', { chain: 'solana', token: THREE_MINT, pool: THREE_DEXTOOLS_PAIR, theme: 'dark' });+ let cancel = () => {};+ const fail = () => {+ cancel();+ host.classList.remove('ready');+ host.replaceChildren(+ embedFallbackNode({+ name: 'The DEXTools chart',+ href: DEXTOOLS_PAIR_URL,+ label: 'Open $THREE on DEXTools',+ onRetry: () => mountDextoolsChart(host),+ className: 'tk-chart-state',+ buttonClassName: 'tk-btn',+ }),+ );+ };+ if (!urls) return fail();++ const skel = document.createElement('div');+ skel.className = 'tk-skel tk-chart-skel';+ const frame = document.createElement('iframe');+ frame.className = 'tk-chart-frame';+ frame.src = urls.embed;+ frame.title = '$THREE live price chart by DEXTools';+ frame.loading = 'lazy';+ frame.allow = 'clipboard-write; fullscreen';+ // DEXTools' edge answers 403 to a loopback Referer, and a refused frame is a+ // blank box the embed guard cannot see into. Local dev sends no referrer;+ // every deployed origin sends its own, so DEXTools sees where its chart runs.+ const loopback = /^(localhost|127\.0\.0\.1|\[::1\])$/.test(location.hostname);+ frame.referrerPolicy = loopback ? 'no-referrer' : 'strict-origin-when-cross-origin';+ frame.addEventListener('load', () => {+ cancel();+ host.classList.add('ready');+ });+ frame.addEventListener('error', fail);+ cancel = watchEmbed(host, { onTimeout: fail });+ host.replaceChildren(skel, frame);+}++// ── community buybacks: DEXTools Social Boost wins, each with its receipt ────+const fmtWinDate = (iso) =>+ new Date(`${iso}T00:00:00Z`).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric', timeZone: 'UTC' });++function renderSocialBoost() {+ const { count, totalUsd } = socialBoostSummary();+ const held = `${(DEXTOOLS_HOLDING.tokens / 1e6).toFixed(2)}M`;+ const rows = SOCIAL_BOOST_WINS.map(+ (w) => `<div class="tk-bb-run">+ <span class="tk-bb-run-date">${esc(fmtWinDate(w.date))}</span>+ <span class="tk-bb-run-amt">${w.period === 'weekly' ? 'Weekly' : 'Daily'} winner · <b>${fmtUsd(w.prizeUsd, 0)}</b> buyback</span>+ <a href="${esc(w.receipt)}" target="_blank" rel="noopener" title="See this win on DEXTools">Receipt ↗</a>+ </div>`,+ ).join('');+ return `+ <div class="tk-bb-commit"><b>${fmtUsd(totalUsd, 0)}</b><em>of $THREE bought by DEXTools across ${count} Social Boost wins</em></div>+ <p class="tk-bb-lead">DEXTools ranks tokens by visits to their pair page. When $THREE tops the board, DEXTools buys $THREE on the open market and holds it: after the weekly win it <a href="${esc(DEXTOOLS_HOLDING.source)}" target="_blank" rel="noopener">reported holding ${held} $THREE</a>. Every visit from here counts toward the next win.</p>+ <div class="tk-buy tk-dt-cta">+ <a class="tk-btn primary" href="${DEXTOOLS_PAIR_URL}" target="_blank" rel="noopener">Visit $THREE on DEXTools ↗</a>+ <a class="tk-btn" href="${SOCIAL_BOOST_LEADERBOARD_URL}" target="_blank" rel="noopener">Social Boost leaderboard ↗</a>+ <a class="tk-btn" href="${SOCIAL_BOOST_STORY_PATH}">Read the story →</a>+ </div>+ <div class="tk-bb-runs-h">Wins</div>+ <div class="tk-bb-runs">${rows}</div>`;+}+// ── buy flow: Phantom → in-page swap, else pump.fun ─────────────────────────async function buyThree() {const provider = window.solana || window.phantom?.solana;@@ -449,6 +544,10 @@ function boot() {${Array.from({ length: 4 }, () => `<div class="tk-stat"><div class="tk-skel" style="height:48px"></div></div>`).join('')}</div><div class="tk-why" data-why>${renderWhyHold(50)}</div>+ <div class="tk-card tk-chart">+ <h2 class="tk-chart-h">Live chart <a href="${DEXTOOLS_PAIR_URL}" target="_blank" rel="noopener">Chart by DEXTools ↗</a></h2>+ <div class="tk-chart-host" data-chart></div>+ </div><div class="tk-grid"><div class="tk-card"><h2>Bonding curve</h2>@@ -469,10 +568,15 @@ function boot() {<h2>Programmatic buybacks</h2><div data-buyback><div class="tk-skel" style="height:96px"></div></div></div>+ <div class="tk-card tk-bb" id="tk-social-boost">+ <h2>Community buybacks · DEXTools Social Boost</h2>+ ${renderSocialBoost()}+ </div><div class="tk-foot"><a href="/dashboard/holders">🏆 Holder leaderboard</a><a href="/three-live">⚡ Protocol Pulse (live 3D)</a><a href="/dashboard/three-token">📊 $THREE dashboard</a>+ <a href="${DEXTOOLS_PAIR_URL}" target="_blank" rel="noopener">📈 DEXTools ↗</a><a href="https://solscan.io/token/${THREE_MINT}" target="_blank" rel="noopener">🔎 Solscan ↗</a></div>`;@@ -503,6 +607,8 @@ function boot() {buyThree().catch(() => window.open(PUMP_URL, '_blank', 'noopener'));});+ mountDextoolsChart(wrap.querySelector('[data-chart]'));+// Bonding curve — real on-chain reads for the $THREE mint.mountBondingCurve(wrap.querySelector('[data-curve]'), { mint: THREE_MINT, network: 'mainnet', showUsd: true, refreshMs: 15_000, accent: '#4ade80' });