diff --git a/app/src/app/api/launch/metrics/route.ts b/app/src/app/api/launch/metrics/route.ts new file mode 100644 index 00000000..57dae98f --- /dev/null +++ b/app/src/app/api/launch/metrics/route.ts @@ -0,0 +1,22 @@ +import { NextResponse } from "next/server"; +import { isAddress } from "viem"; +import { isChainKey } from "@/lib/chainPublic"; +import { getLaunchMetrics } from "@/lib/launchpad/metricsServer"; + +export const dynamic = "force-dynamic"; + +/** GET /api/launch/metrics?chain=base&token=0x… → per‑launch metrics (holders, supply, trades, volume, fees). 30‑second memo per launch. */ +export async function GET(req: Request) { + const u = new URL(req.url); + const chain = u.searchParams.get("chain"); + const token = u.searchParams.get("token"); + if (!isChainKey(chain) || !token || !isAddress(token)) return NextResponse.json({ error: "bad params" }, { status: 400 }); + try { + const metrics = await getLaunchMetrics(chain, token); + if (!metrics) return NextResponse.json({ error: "not found" }, { status: 404 }); + return NextResponse.json(metrics, { headers: { "cache-control": "no-store" } }); + } catch (err) { + console.error("[launch] metrics failed:", err instanceof Error ? err.message : err); + return NextResponse.json({ error: "could not load metrics" }, { status: 502 }); + } +} diff --git a/app/src/app/launch/details/[chain]/[token]/page.tsx b/app/src/app/launch/details/[chain]/[token]/page.tsx new file mode 100644 index 00000000..a24bf548 --- /dev/null +++ b/app/src/app/launch/details/[chain]/[token]/page.tsx @@ -0,0 +1,108 @@ +import type { Metadata } from "next"; +import Link from "next/link"; +import { notFound } from "next/navigation"; +import { isAddress } from "viem"; +import { CHAIN_LABELS, isChainKey, shortAddr } from "@/lib/chainPublic"; +import { fmtShare } from "@/lib/launchpad/holders"; +import { marketUsd } from "@/lib/launchpad/market-format"; +import { fmtUnitsExact } from "@/lib/launchpad/math"; +import { LAUNCH_TOKEN_DECIMALS } from "@/lib/launchpad/metrics"; +import { getLaunchMetrics } from "@/lib/launchpad/metricsServer"; +import { pageMetadata, tokenPath } from "@/lib/seo"; + +export const dynamic = "force-dynamic"; + +/** Title, description and canonical for one launch's details page. */ +export async function generateMetadata({ params }: { params: Promise<{ chain: string; token: string }> }): Promise { + const { chain, token } = await params; + if (!isChainKey(chain) || !isAddress(token)) return { title: "Launch not found" }; + const m = await getLaunchMetrics(chain, token); + if (!m) return { title: "Launch not found" }; + return pageMetadata({ + path: `/launch/details/${m.chain}/${m.token}`, + title: `${m.name} (${m.symbol}) launch details`, + description: `Holders, trades, volume and fees for ${m.name} (${m.symbol}) on ${CHAIN_LABELS[m.chain]}, read from the openlaunch indexer.`, + }); +} + +/** One launch's metrics: holders, supply, trades, volume, fees and the wallets holding most of it. */ +export default async function LaunchDetailsPage({ params }: { params: Promise<{ chain: string; token: string }> }) { + const { chain, token } = await params; + if (!isChainKey(chain) || !isAddress(token)) notFound(); + const m = await getLaunchMetrics(chain, token); + if (!m) notFound(); + + const count = (n: number) => n.toLocaleString("en-US"); + const usd = (v: number | null) => (v === null ? "—" : marketUsd(v)); + const symbol = m.symbol; + + return ( +
+
+

+ + {m.name} ({symbol}) + + + {CHAIN_LABELS[m.chain]} +

+

Launch details

+

+ {shortAddr(m.token)} · every trade, fee and holder the indexer holds for this launch +

+
+ +
+ + + + + + +
+ +
+

Top holders

+

The five largest wallets, with the pool and the protocol's own addresses left out.

+ {!m.synced ? ( +

The transfer history is still indexing, so this ranking is incomplete. Check back in a minute.

+ ) : m.topHolders.length === 0 ? ( +

No holders yet.

+ ) : ( +
    + {m.topHolders.map((h, i) => ( +
  1. + + {i + 1}. {shortAddr(h.address)} + + + {fmtShare(h.bps)} + +
  2. + ))} +
+ )} +
+ +

+ {m.synced ? `The ten largest wallets hold ${fmtShare(m.top10Bps)} of supply; protocol addresses (the pool, router, Permit2 and locker) hold ${fmtShare(m.poolBps)}. ` : null} + + The full token page + {" "} + has the chart, the trades and the receipts. +

+
+ ); +} + +function Cell({ k, v, sub }: { k: string; v: string; sub: string }) { + return ( +
+
{k}
+
+ {v} + {sub} +
+
+ ); +} diff --git a/app/src/lib/launchpad/holdersServer.test.ts b/app/src/lib/launchpad/holdersServer.test.ts new file mode 100644 index 00000000..a2fc24cf --- /dev/null +++ b/app/src/lib/launchpad/holdersServer.test.ts @@ -0,0 +1,11 @@ +import { test } from "node:test"; +import assert from "node:assert/strict"; +import { SYNCED_FOREVER } from "./holders.ts"; +import { historyComplete } from "./holdersServer.ts"; + +test("holder history is complete only at the SYNCED_FOREVER marker", () => { + assert.equal(historyComplete(null), false, "an unstarted backfill is not complete"); + assert.equal(historyComplete(100n), false, "a launch-block cursor is not complete"); + assert.equal(historyComplete(1_000_101n), false, "an intermediate block far past the launch is still partial"); + assert.equal(historyComplete(SYNCED_FOREVER), true, "the indexer's sentinel is the only completion evidence"); +}); diff --git a/app/src/lib/launchpad/holdersServer.ts b/app/src/lib/launchpad/holdersServer.ts index f788f1ba..bf58a84a 100644 --- a/app/src/lib/launchpad/holdersServer.ts +++ b/app/src/lib/launchpad/holdersServer.ts @@ -1,22 +1,79 @@ import "server-only"; -import { maybeDb } from "@/lib/db"; +import { maybeDb, type Db } from "@/lib/db"; import { chainIdOf, type ChainKey } from "@/lib/chainPublic"; -import { DEAD_ADDR, TOP_HOLDERS, ZERO_ADDR, creatorActivity, holderTags, shareBps, sniperSummary, trustNotes, type HolderTag } from "./holders"; +import { DEAD_ADDR, SYNCED_FOREVER, TOP_HOLDERS, ZERO_ADDR, creatorActivity, holderTags, shareBps, sniperSummary, trustNotes, type HolderTag } from "./holders"; import { systemAddresses } from "./indexer"; export type HolderRow = { address: string; balance: string; bps: number; tags: HolderTag[] }; -export type HolderPanel = { + +/** The holder facts on their own: distribution and supply, without the trust panel's creator and sniper work. */ +export type HolderSummary = { synced: boolean; // false while the token's transfer history is still being backfilled holders: number; supply: string; - top: HolderRow[]; + top: { address: string; balance: string; bps: number }[]; top10Bps: number; poolBps: number; +}; + +export type HolderPanel = Omit & { + top: HolderRow[]; creator: { address: string; bps: number; bought: string; sold: string; sells: number }; sniper: { wallets: number; bps: number }; notes: { level: "warn" | "info" | "good"; text: string }[]; }; +/** + * Whether a launch's transfer history is complete: the indexer writes the SYNCED_FOREVER sentinel only when its backfill + * reaches the chain cursor. An intermediate block (however far past the launch) is still a partial scan, and the + * watchlist uses the same marker, so the details figures agree with it. + */ +export function historyComplete(holdersSyncedBlock: bigint | null): boolean { + return holdersSyncedBlock !== null && BigInt(holdersSyncedBlock) === SYNCED_FOREVER; +} + +/** + * The two reads both readers need, issued together: the largest holder balances (the protocol's own addresses and the + * pool aside) and the balance the pool holds. A caller adds its own reads to the same Promise.all, so they run alongside. + */ +function holderReads(db: Db, cid: number, t: string, system: string[]) { + const excluded = [...system, ZERO_ADDR, DEAD_ADDR]; + return Promise.all([ + db<{ holder: string; balance: string }[]>` + SELECT h.holder, h.balance::text AS balance FROM bb_token_holders h + WHERE h.chain_id = ${cid} AND h.token = ${t} AND h.balance > 0 AND NOT (h.holder = ANY(${excluded})) + ORDER BY h.balance DESC LIMIT ${TOP_HOLDERS}`, // qualified: a bare "balance" would sort the ::text alias + db<{ balance: string }[]>` + SELECT COALESCE(sum(balance), 0)::text AS balance FROM bb_token_holders WHERE chain_id = ${cid} AND token = ${t} AND holder = ANY(${system})`, + ]); +} + +/** + * HolderSummary for one launch: the two indexed reads the distribution needs, and not the launch's swaps, which only the + * panel's sniper and creator work below uses. A caller that shows holders alone (the details page and + * /api/launch/metrics) pays for the figures it asks for, however many trades the launch has. + */ +export async function getHolderSummary(chain: ChainKey, token: string): Promise { + const db = maybeDb(); + if (!db) return null; + const cid = chainIdOf(chain); + const t = token.toLowerCase(); + const [l] = await db<{ supply: string; block_number: bigint; holders: number; holders_synced_block: bigint | null }[]>` + SELECT supply::text AS supply, block_number, holders, holders_synced_block FROM bb_launches WHERE chain_id = ${cid} AND token = ${t}`; + if (!l) return null; + const supply = BigInt(l.supply); + const [rows, pool] = await holderReads(db, cid, t, systemAddresses(chain)); + const top = rows.map((r) => ({ address: r.holder, balance: r.balance, bps: shareBps(BigInt(r.balance), supply) })); + return { + synced: historyComplete(l.holders_synced_block), + holders: l.holders, + supply: l.supply, + top, + top10Bps: top.reduce((a, r) => a + r.bps, 0), + poolBps: shareBps(BigInt(pool[0]?.balance ?? "0"), supply), + }; +} + /** Holder distribution + creator / sniper facts for one launch. Cheap: two indexed queries + one small scan of its swaps. */ export async function getHolderPanel(chain: ChainKey, token: string): Promise { const db = maybeDb(); @@ -28,16 +85,10 @@ export async function getHolderPanel(chain: ChainKey, token: string): Promise` - SELECT h.holder, h.balance::text AS balance FROM bb_token_holders h - WHERE h.chain_id = ${cid} AND h.token = ${t} AND h.balance > 0 AND NOT (h.holder = ANY(${excluded})) - ORDER BY h.balance DESC LIMIT ${TOP_HOLDERS}`, // qualified: a bare "balance" would sort the ::text alias + const [[rows, pool], swaps] = await Promise.all([ + holderReads(db, cid, t, system), db<{ trader: string | null; is_buy: boolean; block_number: bigint; amount1: string }[]>` SELECT trader, is_buy, block_number, amount1::text AS amount1 FROM bb_launch_swaps WHERE chain_id = ${cid} AND token = ${t}`, - db<{ balance: string }[]>` - SELECT COALESCE(sum(balance), 0)::text AS balance FROM bb_token_holders WHERE chain_id = ${cid} AND token = ${t} AND holder = ANY(${system})`, ]); const lite = swaps.map((s) => ({ trader: s.trader, is_buy: s.is_buy, block_number: s.block_number, token_amount: BigInt(s.amount1) })); const sn = sniperSummary(lite, l.block_number, supply); @@ -48,7 +99,7 @@ export async function getHolderPanel(chain: ChainKey, token: string): Promise a + r.bps, 0); const poolBps = shareBps(BigInt(pool[0]?.balance ?? "0"), supply); - const synced = l.holders_synced_block !== null && BigInt(l.holders_synced_block) > BigInt(l.block_number) + 1_000_000n; // SYNCED_FOREVER sentinel + const synced = historyComplete(l.holders_synced_block); return { synced, holders: l.holders, diff --git a/app/src/lib/launchpad/metrics.test.ts b/app/src/lib/launchpad/metrics.test.ts new file mode 100644 index 00000000..7a973081 --- /dev/null +++ b/app/src/lib/launchpad/metrics.test.ts @@ -0,0 +1,70 @@ +import { test } from "node:test"; +import assert from "node:assert/strict"; +import { LAUNCH_TOKEN_DECIMALS, TOP_HOLDERS_SHOWN, feeUsd, launchMetrics, supplyTokens, type LaunchMetricsLaunch, type LaunchMetricsPanel } from "./metrics.ts"; + +const TOKEN = "0x" + "a".repeat(40); +/** 1e9 tokens at 18 decimals: the supply every LaunchToken has. */ +const SUPPLY = "1000000000000000000000000000"; + +const launch = (o: Partial = {}): LaunchMetricsLaunch => ({ chain: "base", token: TOKEN, name: "Test", symbol: "TEST", quote_symbol: "ETH", buys: 7, sells: 3, volume_usd: 1234.5, ...o }); + +const topN = (n: number) => Array.from({ length: n }, (_, i) => ({ address: `0x${String(i).padStart(4, "0")}${"b".repeat(36)}`, balance: "1000", bps: 500 })); + +const panel = (o: Partial = {}): LaunchMetricsPanel => ({ synced: true, holders: 42, supply: SUPPLY, top: topN(10), top10Bps: 4200, poolBps: 5800, ...o }); + +const fees = { collected_usd: 12.5, burned_usd: 3.25, partial: false }; + +test("supply is scaled by the launched token's 18 decimals, not the quote's", () => { + assert.equal(LAUNCH_TOKEN_DECIMALS, 18); + assert.equal(supplyTokens(SUPPLY), 1_000_000_000); + assert.equal(supplyTokens("1500000000000000000"), 1.5); + // the quote is USDG at 6 decimals here: the supply is the token's own and does not move with it + const m = launchMetrics(launch({ quote_symbol: "USDG" }), panel(), fees); + assert.equal(m.supply_tokens, 1_000_000_000); +}); + +test("trades are the launch's whole count, not the newest page of swaps", () => { + assert.equal(launchMetrics(launch({ buys: 7, sells: 3 }), panel(), fees).trades, 10); +}); + +test("holders are reported only once the transfer history is complete", () => { + assert.equal(launchMetrics(launch(), panel(), fees).holders, 42); + const indexing = launchMetrics(launch(), panel({ synced: false, holders: 3 }), fees); + assert.equal(indexing.holders, null, "a partial backfill is not a count of zero"); + assert.equal(indexing.synced, false); +}); + +test("volume and fees are the stored USD figures, and an unpriced launch keeps a null volume", () => { + const m = launchMetrics(launch(), panel(), fees); + assert.equal(m.volume_usd, 1234.5); + assert.equal(m.fees_collected_usd, 12.5); + assert.equal(m.fees_burned_usd, 3.25); + assert.equal(launchMetrics(launch({ volume_usd: null }), panel(), fees).volume_usd, null); +}); + +test("the top holders are the panel's first five, named as the panel names them", () => { + const m = launchMetrics(launch(), panel(), fees); + assert.equal(TOP_HOLDERS_SHOWN, 5); + assert.deepEqual(m.topHolders.map((h) => h.address), topN(5).map((h) => h.address)); + assert.equal(m.top10Bps, 4200); + assert.equal(m.poolBps, 5800); +}); + +test("a fee with no hourly price is valued at the quote's current price, never left at $0", () => { + // 10 USDC at 6 decimals with no stored usd, quote at $1 → $10, not the stored zero + assert.equal(feeUsd(0, "10000000", 6, 1), 10); + // a stored figure plus an unpriced part adds up + assert.equal(feeUsd(4, "1000000", 6, 2), 6); + // a launch with no fees at all is genuinely zero + assert.equal(feeUsd(0, "0", 6, 1), 0); +}); + +test("a fee nothing can price is unavailable rather than $0, and the partial flag reaches the response", () => { + assert.equal(feeUsd(null, "10000000", 6, null), null); + // a priced quote with a momentary outage keeps the stored part but reports it as partial + assert.equal(feeUsd(4, "1000000", 6, null), 4); + const m = launchMetrics(launch(), panel(), { collected_usd: null, burned_usd: 4, partial: true }); + assert.equal(m.fees_collected_usd, null); + assert.equal(m.fees_burned_usd, 4); + assert.equal(m.fees_partial, true); +}); diff --git a/app/src/lib/launchpad/metrics.ts b/app/src/lib/launchpad/metrics.ts new file mode 100644 index 00000000..03265658 --- /dev/null +++ b/app/src/lib/launchpad/metrics.ts @@ -0,0 +1,105 @@ +/** + * One launch's detail figures (pure; node --test loads this): holders, supply, trades, volume and fees as the launch + * details page and /api/launch/metrics report them. Derived from the launch read model (queries.ts `getLaunch`) and the + * holder panel (holdersServer.ts `getHolderPanel`); nothing here reads the database or the chain. + */ +import type { LaunchRow } from "./queries"; +import { tradeTimeUsd } from "./trade-time-usd.ts"; + +/** + * Every launch's token is a LaunchToken: a fixed supply of 1e9 tokens at 18 decimals. `bb_launches.supply` is in those + * base units, which belong to the launched token — never to the quote, whose decimals differ per quote (6 for a stable, + * 18 for ETH, HYPE or GITLAWB) and are what math.ts scales prices by, not what the supply is divided by. + */ +export const LAUNCH_TOKEN_DECIMALS = 18; + +/** How many holders the page and the API list: the panel's own top ten, trimmed. */ +export const TOP_HOLDERS_SHOWN = 5; + +/** + * A launch's fee totals in USD. The indexer stores each fee event in its own hour's price; rows it could not price are + * valued at the quote's price now, exactly as the site totals do (trade-time-usd.ts). null means nothing prices them; + * `partial` says a normally priced quote had no price this instant, so the figure can undercount. + */ +export type LaunchFeesUsd = { collected_usd: number | null; burned_usd: number | null; partial: boolean }; + +/** One fee figure: the stored trade-hour sum plus unpriced raw fees at today's quote price, or null when unpriceable. */ +export function feeUsd(stored: number | null | undefined, unpricedRaw: string | bigint | null | undefined, decimals: number, quoteUsdNow: number | null): number | null { + const hasRaw = unpricedRaw !== null && unpricedRaw !== undefined && BigInt(unpricedRaw) > 0n; + const hasStored = typeof stored === "number" && Number.isFinite(stored) && stored > 0; + if (!hasRaw && !hasStored) return 0; // a launch with no fees has a zero total, not an unavailable one + return tradeTimeUsd(stored, unpricedRaw, decimals, quoteUsdNow); +} + +/** The facts these figures rest on, from the launch read model: the row itself carries everything else. */ +export type LaunchMetricsLaunch = Pick; + +/** The facts they rest on from the holder panel (holdersServer.ts `HolderPanel`). */ +export type LaunchMetricsPanel = { + /** false while the token's transfer history is still being backfilled. */ + synced: boolean; + holders: number; + supply: string; + top: readonly { address: string; balance: string; bps: number }[]; + top10Bps: number; + poolBps: number; +}; + +export type LaunchMetrics = { + chain: LaunchRow["chain"]; + token: string; + name: string; + symbol: string; + /** The launch's quote asset, which its fees are collected and burned in. */ + quote_symbol: string; + /** Distinct holders; null while the history is incomplete, because a partial count is not a count of zero. */ + holders: number | null; + synced: boolean; + /** The whole supply in tokens. Every launch has 1e9; the figure comes from the row rather than being assumed. */ + supply_tokens: number; + /** Every trade the indexer holds for this launch: buys + sells, not the newest page of them. */ + trades: number; + /** All-time volume in USD, each trade at its own hour's price; null when nothing prices the launch's quote. */ + volume_usd: number | null; + /** Collected and burned fees in USD, the quote side only; null when nothing prices them. */ + fees_collected_usd: number | null; + fees_burned_usd: number | null; + /** True when an unpriced fee had to be valued at the quote's current price, so the figure may undercount. */ + fees_partial: boolean; + /** + * Share of supply in the ten largest non-system wallets, and in the locked pool, in basis points. Both, and the + * ranking below, are partial while `synced` is false: show them only once the transfer history is complete. + */ + top10Bps: number; + poolBps: number; + topHolders: { address: string; balance: string; bps: number }[]; +}; + +/** A raw amount in the launched token's base units as whole tokens: exact while the integer part fits a double. */ +export function supplyTokens(raw: string): number { + const base = 10n ** BigInt(LAUNCH_TOKEN_DECIMALS); + const v = BigInt(raw); + return Number(v / base) + Number(v % base) / 10 ** LAUNCH_TOKEN_DECIMALS; +} + +/** The figures one launch's page and API report. */ +export function launchMetrics(launch: LaunchMetricsLaunch, panel: LaunchMetricsPanel, fees: LaunchFeesUsd): LaunchMetrics { + return { + chain: launch.chain, + token: launch.token, + name: launch.name, + symbol: launch.symbol, + quote_symbol: launch.quote_symbol, + holders: panel.synced ? panel.holders : null, + synced: panel.synced, + supply_tokens: supplyTokens(panel.supply), + trades: launch.buys + launch.sells, + volume_usd: launch.volume_usd, + fees_collected_usd: fees.collected_usd, + fees_burned_usd: fees.burned_usd, + fees_partial: fees.partial, + top10Bps: panel.top10Bps, + poolBps: panel.poolBps, + topHolders: panel.top.slice(0, TOP_HOLDERS_SHOWN).map((h) => ({ address: h.address, balance: h.balance, bps: h.bps })), + }; +} diff --git a/app/src/lib/launchpad/metricsServer.ts b/app/src/lib/launchpad/metricsServer.ts new file mode 100644 index 00000000..2830f4db --- /dev/null +++ b/app/src/lib/launchpad/metricsServer.ts @@ -0,0 +1,53 @@ +import "server-only"; +import { chainIdOf, type ChainKey } from "@/lib/chainPublic"; +import { maybeDb } from "@/lib/db"; +import { ethUsd } from "./ethPrice"; +import { getHolderSummary } from "./holdersServer"; +import { memo } from "./memo"; +import { feeUsd, launchMetrics, type LaunchFeesUsd, type LaunchMetrics } from "./metrics"; +import { getLaunch } from "./queries"; +import { missingNow } from "./trade-time-usd.ts"; + +export type { LaunchMetrics }; + +/** + * One launch's detail figures, or null when there is no such launch. Memoized for 30 seconds per launch, so the page + * and /api/launch/metrics read the database once however often a reader reloads or opens a second tab. + */ +export function getLaunchMetrics(chain: ChainKey, token: string): Promise { + const t = token.toLowerCase(); + return memo(`metrics:${chain}:${t}`, 30_000, () => read(chain, t)); +} + +async function read(chain: ChainKey, token: string): Promise { + const db = maybeDb(); + if (!db) return null; + const usd = await ethUsd(); + const [launch, summary, feeRows] = await Promise.all([ + // the launch read model: quote decimals as the server resolved them and volume in USD at each trade's own hour + getLaunch(chain, token, usd), + // the holder figures only: the trust panel's sniper and creator work reads the launch's every swap, and none of it + // reaches this page + getHolderSummary(chain, token), + // the launch's own fee totals: the stored trade-hour USD sums plus the raw quote amounts whose hour had no price, + // valued at the quote's price now exactly as the site totals do (getLaunchTotals / trade-time-usd.ts) + db<{ collected_usd: number | null; burned_usd: number | null; collected_unpriced: string | null; burned_unpriced: string | null }[]>` + SELECT l.fees_collected_usd::float8 AS collected_usd, l.fees_burned_usd::float8 AS burned_usd, + COALESCE((SELECT sum(f.quote_amount) FROM bb_launch_fee_events f + WHERE f.chain_id = l.chain_id AND f.token = l.token AND f.kind = 'collected' AND f.usd IS NULL), 0)::text AS collected_unpriced, + COALESCE((SELECT sum(f.amount) FROM bb_launch_fee_events f + WHERE f.chain_id = l.chain_id AND f.token = l.token AND f.kind = 'burned' + AND f.currency = l.quote AND f.usd IS NULL), 0)::text AS burned_unpriced + FROM bb_launches l WHERE l.chain_id = ${chainIdOf(chain)} AND l.token = ${token}`, + ]); + if (!launch || !summary) return null; + const f = feeRows[0]; + const quoteUsd = launch.quote_usd; + const decimals = launch.quote_decimals; + const fees: LaunchFeesUsd = { + collected_usd: feeUsd(f?.collected_usd, f?.collected_unpriced, decimals, quoteUsd), + burned_usd: feeUsd(f?.burned_usd, f?.burned_unpriced, decimals, quoteUsd), + partial: missingNow(f?.collected_unpriced, quoteUsd, launch.quote_priced) || missingNow(f?.burned_unpriced, quoteUsd, launch.quote_priced), + }; + return launchMetrics(launch, summary, fees); +}