010c3afdd9
override.js is the InstantAdPay module (same code, same tests) with LinkSpin defaults: qualification is the LinkSpin contract's own buyerCount >= 5 (referred first buys of $20+, which on the $10/$25/... ladder means $25+, the level-3 bar), house id #1, hunt up to 25 hops, one recipient per purchase, purchases from overrideGoLive on, weekly Mon-Sun Central, settled Monday after 9 AM CT. - Default overrideMode 'dryrun': Monday who-would-be-paid summary to the admin Telegram chat (telegramAdminChatId; email to ADMIN_EMAIL if the bot is not set). No money moves. - Payer pays only with overrideMode 'live' + overrideGoLive + OVERRIDE_PAYER_KEY. LinkSpin has no MySQL, so every once-only step is an exclusive file create on the shared volume (fails closed); plan frozen per week, 'sending' persisted before the tx, lost answers -> review (never re-sent), dust carried, weekly cap held whole, balance + gas checked first. - Members: AwardPaid from the payer emails + on-site notice "Your Level 4 override is paid"; Wallet screen and feeds label it "Level 4 override". /api/my/activity now reads the whole history (was the last 600 events, the IAP bug of 2026-09-16; LinkSpin is at 525). - Admin: /api/admin/override (+ status, payer), POST /pay (live only), POST /resolve; P&L card. - Contract page: Level 4 override panel hidden until overrideMode is live (contract.js reveals it). - qa/override.test.cjs (bash qa/run.sh override): 30 checks, fake chain/signer, throwaway data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
2.4 KiB
HTML
38 lines
2.4 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
<meta name="robots" content="noindex, nofollow">
|
|
<title>Wallet · LinkSpin</title>
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
|
|
<link rel="stylesheet" href="/assets/cr.css?v=20261020s">
|
|
<style>
|
|
.body{padding:16px 24px;display:grid;gap:16px}
|
|
.two{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px}
|
|
.pay .hd,.pay .rw{grid-template-columns:110px minmax(0,1.4fr) 70px 110px 110px 120px}
|
|
.pos .rw{grid-template-columns:minmax(0,1fr) 120px 100px}
|
|
@media (max-width:900px){.two{grid-template-columns:1fr}.pay .hd{display:none}.pay .rw{grid-template-columns:1fr 1fr}.body{padding:12px 16px}}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="page">
|
|
<div class="body">
|
|
<div class="tiles" id="tiles"></div>
|
|
<div class="two">
|
|
<div style="display:grid;gap:16px;align-content:start">
|
|
<div class="tbl pay"><div class="hd"><span>When</span><span>From</span><span>Level</span><span>Package</span><span class="r">You got</span><span>Transaction</span></div><div id="payRows"></div><div class="ft" id="payFoot"></div></div>
|
|
<div class="tbl pos"><div class="hd" style="grid-template-columns:minmax(0,1fr) 120px 100px"><span>Position</span><span>Credits</span><span>Status</span></div><div id="posRows"></div><div class="ft">linked positions share this account's credits; levels pay on the main position</div></div>
|
|
</div>
|
|
<div style="display:grid;gap:16px;align-content:start">
|
|
<div class="panel"><h2>This wallet</h2><div id="walletBox" class="ink2">loading</div><div style="display:flex;gap:8px;flex-wrap:wrap"><a class="btn sm" href="/credits">Link a wallet, switch on payouts, buy</a></div><div class="muted">Linking a wallet and buying a package live on the Credits screen.</div></div>
|
|
<div class="panel"><h2>How you get paid</h2><div class="ink2">Every package splits in the same transaction: 50% direct sponsor, 20% level 2, 10% level 3, 20% platform. Nothing is held by the site, ever. Your sponsor is paid the moment your purchase settles.</div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="/assets/cr-shell.js?v=20261023a"></script>
|
|
<script src="/assets/wallet-screen.js?v=20261023ov"></script>
|
|
</body>
|
|
</html>
|