Never hold a purchase (Marty 2026-10-27): a holding-tank buyer with no sponsor anywhere goes ahead under the catch position #1; the 24h hold only stops a plain switch-on-payouts. Network alignment still runs first. home.js buys with intent=buy; chatbot + QA updated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-27 07:05:06 -05:00
parent 4645d5605a
commit e5c55c2d8b
5 changed files with 10 additions and 10 deletions
+1 -6
View File
@@ -45,12 +45,7 @@
IAP.status('Confirm the purchase in your wallet…');
// resolve the sponsor at buy time: a code referrer who activated since
// page load still gets locked in
const spNow = await (await fetch('/api/sponsor')).json();
if (spNow.sponsorBlocked === 'tankHold') { // holding tank (2026-10-27): never bound under the company, held for an adopter
let t = "You're being matched with a sponsor. Payouts switch on as soon as someone picks you up (within 24 hours).";
if (spNow.tankHold && spNow.tankHold.until) { const m = Math.max(1, Math.round((spNow.tankHold.until - Date.now()) / 60000)); t += spNow.tankHold.until > Date.now() ? ' Time left: ' + (m >= 60 ? Math.floor(m / 60) + ' h ' + (m % 60) + ' min' : m + ' min') + '.' : ' Any minute now.'; }
IAP.status(t + ' Your package can go through then.', 'ok'); return;
}
const spNow = await (await fetch('/api/sponsor?intent=buy')).json(); // intent=buy: never held (Marty 2026-10-27)
const r = await IAPWallet.buy(Number(btn.dataset.id), spNow.sponsorId || 0, btn.dataset.cost);
if (r.receipt.status !== '0x1') throw new Error('Transaction reverted. Check the explorer.');
IAP.status('Purchase settled on-chain. Credits are yours, payouts delivered. Watch it on the ledger.', 'ok');