Level 4 override for LinkSpin: weekly dry-run report + the payer, shipped OFF (Marty approved 2026-10-23)
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>
This commit is contained in:
+9
-2
@@ -466,6 +466,13 @@
|
||||
<p class="small" id="burnerLine">…</p>
|
||||
<p><button class="btn small sec" type="button" id="burnerRun">Run now</button></p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-head"><h3>Level 4 override</h3><span class="sub">3% of each purchase to the qualified 4th upline, paid weekly from the payer wallet</span></div>
|
||||
<p class="small" id="ovPayer">…</p>
|
||||
<div id="ovWeeks" class="small"></div>
|
||||
<p><select id="ovWeek"></select> <button class="btn small sec" type="button" id="ovShow">Show week</button> <button class="btn small" type="button" id="ovPay" hidden>Pay this week now</button></p>
|
||||
<div id="ovOut" class="small"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pane" id="pane-settings" hidden>
|
||||
<div class="card">
|
||||
@@ -510,8 +517,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/assets/common.js?v=20261018p25"></script>
|
||||
<script src="/assets/common.js?v=20261023ov"></script>
|
||||
<script src="/assets/admin-kb.js?v=20261020kb"></script>
|
||||
<script src="/assets/admin.js?v=20261023q"></script><script src="/assets/admin-sponsorcheck.js?v=20261022sc"></script>
|
||||
<script src="/assets/admin.js?v=20261023ov"></script><script src="/assets/admin-sponsorcheck.js?v=20261022sc"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user