Weekly prize pot (Marty 2026-11-13): 10% of the week's sales, $20 floor topped up by the company, $50 cap kept internal; half per leaderboard, split 50/30/20; leaderboard page shows the live pot, never the cap; smoke 100/100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-13 15:42:03 -06:00
parent 832395daa4
commit cb77582926
6 changed files with 22 additions and 9 deletions
+4 -1
View File
@@ -35,7 +35,10 @@ function get() {
packs: list(e.CREDIT_PACKS, '10:3,40:10').map(x => { const [credits, usd] = x.split(':').map(Number); return { credits, usd }; }).filter(x => x.credits > 0 && x.usd > 0),
lookUsd: Number(e.LOOK_USD || 2), // banner look (border + hover teaser), per banner, one-time
split: { sponsorPct: num(e.SPONSOR_PCT, 30, 0, 100), companyPct: 100 - num(e.SPONSOR_PCT, 30, 0, 100) }, // on-chain later, no line
prizes: { visitors: list(e.PRIZES_VISITORS, '15,7,3').map(Number).filter(x => x >= 0), sources: list(e.PRIZES_SOURCES, '15,7,3').map(Number).filter(x => x >= 0) }, // USD per place, paid in POL
// weekly prize pot (Marty 2026-11-13): 10% of the week's sales, never under the floor (the company tops it up), capped at $50.
// Half the pot per leaderboard, split 50/30/20 across the top three. The cap is internal: the public page never shows it.
prizePot: { pct: num(e.PRIZE_PCT, 10, 0, 100), floorUsd: num(e.PRIZE_FLOOR_USD, 20, 0, 100000), capUsd: num(e.PRIZE_CAP_USD, 50, 0, 100000),
places: list(e.PRIZE_PLACES, '50,30,20').map(Number).filter(x => x >= 0) },
linkProbe: e.LINK_PROBE !== '0', // check the target link answers and allows frames (off in the local smoke test)
iapBase: String(e.IAP_URL || 'https://instantadpay.com').replace(/\/+$/, ''),
lsBase: String(e.LS_URL || 'https://linkspin.app').replace(/\/+$/, ''),