fix(api): reject datum proxy shell responses

This commit is contained in:
Dorian
2026-05-06 17:19:19 +01:00
parent 2c80340039
commit 83b3a60497
3 changed files with 59 additions and 8 deletions

View File

@@ -17,17 +17,17 @@ export const STATUS_LINES = {
export const LOTTERY_LINES = [
(oddsPerDay: number) =>
`P(block today): ${formatPct(oddsPerDay)}. P(struck by lightning today): 0.000028%. hash on, brave little board.`,
`today's chance: ${formatPct(oddsPerDay)}. small number, enormous main-character energy.`,
(oddsPerDay: number) =>
`at this hashrate, a block is expected once every ${humanYears(1 / Math.max(oddsPerDay, 1e-30) / 365)}. compound those vibes.`,
`statistically, the next block arrives in ${humanYears(1 / Math.max(oddsPerDay, 1e-30) / 365)}. emotionally, any minute now.`,
() =>
`lifetime tickets purchased: many. winners: 0. hope: priceless.`,
`the math says no. the dashboard has chosen to hear "not yet."`,
(oddsPerDay: number) =>
`you're ${ratioVsLightning(oddsPerDay)}× as likely to find a block as get hit by lightning today. almost too easy.`,
`versus lightning today: ${ratioVsLightning(oddsPerDay)}x. bad weather has better marketing.`,
() =>
`the network does not know you exist. and yet, you persist.`,
`four tiny tickets in a planetary raffle. extremely unserious. deeply respected.`,
() =>
`every share is a ticket bought. nobody is buying with more conviction.`,
`every share is a receipt for optimism with terrible accounting.`,
];
export const BLOCK_CELEBRATION_LINES = [