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:
@@ -108,7 +108,7 @@ function head(o) {
|
||||
+ '</head><body><div class="wrap bl">';
|
||||
}
|
||||
function tail() {
|
||||
return '</div><script src="/assets/common.js?v=20261016n"></script><script src="/assets/blog-page.js?v=20260921a"></script></body></html>';
|
||||
return '</div><script src="/assets/common.js?v=20261023ov"></script><script src="/assets/blog-page.js?v=20260921a"></script></body></html>';
|
||||
}
|
||||
const authorBox = () => '<div class="author"><img src="/logo-icon.png" alt="InstantAdPay"><div><b>' + AUTHOR + '</b><span>Founder of InstantAdPay and the Crypto Team Build Network. Twenty-plus years of internet marketing, and a habit of writing down what actually worked.</span></div></div>';
|
||||
const cardHtml = p => '<a class="post-card" href="/blog/' + esc(p.slug) + '">' + (p.cover ? '<img src="' + esc(p.cover) + '" alt="" loading="lazy" style="width:100%;border-radius:10px;margin:0 0 12px">' : '') + '<h2>' + esc(p.title) + '</h2><p>' + esc(p.excerpt) + '</p><p class="meta">' + fmtDate(p.publishedAt || p.created) + ' · ' + readMinutes(p.body) + ' min read' + (p.tags.length ? ' · ' + p.tags.map(esc).join(', ') : '') + '</p></a>';
|
||||
|
||||
Reference in New Issue
Block a user