Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/marketing/app/_components/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ export function statValue(stat: Stat): string {
}

// Latest run from the current nightly benchmark preset.
const PERF_API_URL =
'https://perf.tempo.xyz/api/perf/runs?feed=nightly&limit=1&scenario_id=tip20-50k'
const PERF_API_URL = 'https://perf.tempo.xyz/api/perf/runs?feed=nightly&limit=1&scenario_id=public'

type PerfRuns = {
runs?: {
Expand Down
14 changes: 10 additions & 4 deletions src/marketing/app/performance/_lib/runs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

const PERF_API_URL = 'https://perf.tempo.xyz/api/perf/runs?feed=nightly&limit=100'

const DEFAULT_SCENARIO_FROM = '2026-07-13'
const DEFAULT_SCENARIO_ID = 'tip20-50k'
const PUBLIC_SCENARIO_FROM = '2026-07-23'
const PUBLIC_SCENARIO_ID = 'public'
const TIP20_50K_SCENARIO_FROM = '2026-07-13'
const TIP20_50K_SCENARIO_ID = 'tip20-50k'
const TIP20_SCENARIO_UNTIL = '2026-07-10'

type ApiRun = {
Expand Down Expand Up @@ -64,8 +66,12 @@ function isNightlyScenario(run: ApiRun): boolean {
const scenarioId = run.scenario?.id
if (!startedAt || !scenarioId) return false

if (startedAt >= DEFAULT_SCENARIO_FROM) {
return scenarioId === DEFAULT_SCENARIO_ID
if (startedAt >= PUBLIC_SCENARIO_FROM) {
return scenarioId === PUBLIC_SCENARIO_ID
}

if (startedAt >= TIP20_50K_SCENARIO_FROM) {
return scenarioId === TIP20_50K_SCENARIO_ID
}

return startedAt < TIP20_SCENARIO_UNTIL && scenarioId.startsWith('tip20-')
Expand Down
Loading