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(launcher): one shared creator-fee claim policy sets the default buyback share for the claimer and payouts
nirholasf1e162cd3fec
diff --git a/api/_lib/token/config.js b/api/_lib/token/config.jsindex 8ec4448e0..4de62d84a 100644--- a/api/_lib/token/config.js+++ b/api/_lib/token/config.js@@ -165,6 +165,22 @@ export const SPLIT_POLICIES = Object.freeze({],});+// Creator-fee claim policy. NOT an on-chain payment split (so it is deliberately+// outside SPLIT_POLICIES, which every paid surface routes through the verified+// payment path): it is how a claimed pump.fun creator fee is divided once the+// agent wallet holds it. 'seller' is the creator's payout wallet, 'treasury' is+// the buyback earmark recorded on launcher_claims.buyback_sol. The launcher+// claimer reads the treasury leg as the default buyback_bps and the creator+// payout flow reads the seller leg, so the earnings page explainer, the+// earmark and the payout can never disagree.+export const CREATOR_FEE_CLAIM_POLICY = Object.freeze([+ Object.freeze({ role: 'seller', bps: 5000 }),+ Object.freeze({ role: 'treasury', bps: 5000 }),+]);++/** Default buyback share (bps) of a claimed creator fee: the treasury leg. */+export const CREATOR_FEE_BUYBACK_BPS = CREATOR_FEE_CLAIM_POLICY.find((l) => l.role === 'treasury').bps;+function resolveRole(role, { sellerWallet } = {}) {if (role === 'treasury') return treasuryWallet();if (role === 'rewards') return rewardsWallet();diff --git a/api/cron/launcher-claimer.js b/api/cron/launcher-claimer.jsindex dee234042..75ce09fa1 100644--- a/api/cron/launcher-claimer.js+++ b/api/cron/launcher-claimer.js@@ -26,6 +26,7 @@ import { sql } from '../_lib/db.js';import { createSession, revokeSessionToken } from '../_lib/auth.js';import { requireCron } from '../_lib/cron-auth.js';import { crankSponsoredDistributions } from '../_lib/launch-sponsor.js';+import { CREATOR_FEE_BUYBACK_BPS } from '../_lib/token/config.js';const CLAIM_THRESHOLD_SOL = 0.01;const ORIGIN = env.APP_ORIGIN || 'https://three.ws';@@ -103,7 +104,7 @@ async function processMint(run, token) {const claimSig = claimData.signature ?? claimData.sig ?? null;const claimedLamports = Number(claimData.lamports ?? Math.round(claimableSol * 1e9));const claimedSol = claimedLamports / 1e9;- const buybackBps = Number(buyback_bps ?? 5000);+ const buybackBps = Number(buyback_bps ?? CREATOR_FEE_BUYBACK_BPS);// Earmark only: the on-chain $THREE buy pressure for these coins is delivered by the// buyback_bps binding baked into the launch (see header), not a transfer made here.const buybackSol = Math.round(claimedSol * buybackBps) / 10_000;