Level 4 override payer, shipped OFF (Marty approved 2026-10-23)
override.js: the weekly payer for the 3% level-4 override. It pays only when overrideMode is 'live' AND overrideGoLive is set AND OVERRIDE_PAYER_KEY (or _FILE) is present; otherwise the Monday dry-run report runs as before. Default stays 'dryrun'. Nothing in this commit moves money. - Week = Monday 00:00 to Monday 00:00 Central; settled from 9 AM CT the Monday after, weeks in order. - Plan frozen once per week (claim plan:<week>), one row per recipient (POL wei summed), on the volume. - Claims fail closed: exclusive file create on the shared volume plus event_marks when MySQL is on. - Row marked 'sending' before the tx, tx hash stored on acceptance; lost answers become 'review' and are never re-sent (settled from the chain index or by the admin). Pre-flight revert = carried, no gas. - Dust under overrideDustPol (0.01) carried to next week; overridePayCapPol (100) holds the whole week; wallet must cover total + gas or nothing is sent; Telegram alerts once each. - Telegram summary to Marty's private chat says PAID with tx links. - Members: AwardPaid from the payer emails + on-site notice "Your Level 4 override is paid" and shows in Earnings as "Level 4 override" (common.js / my.js tags bumped to 20261023ov). - Admin: /api/admin/override adds week status + payer state; POST /api/admin/override/pay (only when live) and /api/admin/override/resolve; P&L pane card with "Pay this week now" shown only when live. - Comp plan (earning.html) + Platform Facts card hidden behind data-when="override-live" (shown only when overrideMode is live). Chatbot copy drafted in D:/tmp/override-copy, TODO in chatbot.js. - qa/override.test.cjs (bash qa/run.sh override): 30 checks on a fake chain/signer/DB, throwaway data. Reconciliation 2026-10-23: the dry run reads every Purchase in chain-index (229 events, full history); per Central week it matches the index exactly. The ~$1,775 figure was the rolling 7 days 09-10..09-17. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ function renderPage() {
|
||||
h += '<h2 style="font-size:24px;margin:10px 0 16px">Release notes</h2>';
|
||||
h += v.notes.length ? v.notes.map(n => '<article class="note" id="' + esc(n.id) + '"><h2>' + esc(n.title) + n.tags.map(tagChip).join('') + '</h2><p class="when">' + fmt(n.date) + '</p>' + bodyHtml(n.body) + '</article>').join('') : '<p class="muted">No notes yet.</p>';
|
||||
h += '<p class="muted small" style="margin-top:30px">Suggestions and bug reports: the chat bubble on any page, or the InstantAdPay Telegram group.</p>';
|
||||
h += '</div><script src="/assets/common.js?v=20261016n"></script><script src="/assets/blog-page.js?v=20260914a"></script></body></html>';
|
||||
h += '</div><script src="/assets/common.js?v=20261023ov"></script><script src="/assets/blog-page.js?v=20260914a"></script></body></html>';
|
||||
return h;
|
||||
}
|
||||
module.exports = { init, notes, roadmap, saveNote, saveRoadmap, remove, publicView, renderPage, bodyHtml, TAGS, STATUSES };
|
||||
|
||||
Reference in New Issue
Block a user