diff --git a/README.md b/README.md index 80cb330..ca12427 100644 --- a/README.md +++ b/README.md @@ -7,11 +7,11 @@ Launch numbers APPROVED by Marty 2026-11-17: Boost $5 = a 7-day board spot (plac their branch (paid by the contract in the same tx); reward pot 10% of every Boost; 5 sponsor levels x 10% (company keeps 20%); split immutable on chain; new-member reward $0.25 in POL per verified brand-new network member through a branch, cap 10/day per person; 10 ad credits per 100 verified views. Still proposals: the global pot cap figure ($25/day, `POT_DAILY_CENTS` display + the contract's -`potDailyMaxCents`) and the tier bonus (every 25th sign-up $2.50 locked 14 days). Payouts of sign-up rewards are OFF on staging +`potDailyMaxCents`). Reward tiers are OFF at launch (flat $0.25 only; `REWARD_TIERS` can turn one on later). Payouts of sign-up rewards are OFF on staging (`REWARD_PAYOUTS`). **Members earn for free.** A Boost buys placement only. Level shares and the resharer cut need only a network sign-in (hub member) and a -linked wallet. Compression: `/api/my/order` drops everyone in the hub sponsor line without a wallet, so each level passes up to the next +linked wallet. Compression: `/api/my/order` drops everyone in the hub sponsor line without a wallet or hub-blocked, so each level passes up to the next eligible person; levels left when the line runs out go to the company; with no resharer, the 20% resharer cut goes to the company. ## What it does @@ -59,7 +59,7 @@ eligible person; levels left when the line runs out go to the company; with no r npm install node tools/pages.mjs # regenerate public/*.html (one source of copy + legal facts) node tools/art.mjs # icon, OG image, proof cards, kit creatives (Playwright) -node qa/e2e.mjs # 61 checks: real VASShop on a local anvil chain + stand-in hub (needs ../contracts built) +node qa/e2e.mjs # 63 checks: real VASShop on a local anvil chain + stand-in hub (needs ../contracts built) node qa/chatbot.test.mjs # the site assistant ``` Env: `.env.example`. diff --git a/config.js b/config.js index 98fe5a5..dcea676 100644 --- a/config.js +++ b/config.js @@ -10,7 +10,7 @@ // Launch numbers APPROVED by Marty 2026-11-17: Boost $5 = a 7-day board spot; resharer 20%, pot 10%, 5 sponsor levels x 10% // (company 20%), split immutable on chain; $0.25 POL new-member reward, 10 a day per person; 10 ad credits per 100 verified views. // Members earn for free: a Boost buys placement only. Level shares and the resharer cut need a network sign-in + a linked wallet. -// Still a proposal: the $25/day global pot cap figure and the reward tiers. +// Still a proposal: the $25/day global pot cap figure. Reward tiers are OFF at launch (flat $0.25 only, Marty 2026-11-17). const path = require('path'); let cfg = null; @@ -22,7 +22,10 @@ function get() { const addr = v => /^0x[0-9a-fA-F]{40}$/.test(String(v || '').trim()) ? require('ethers').getAddress(String(v).trim().toLowerCase()) : ''; let tiers = []; try { tiers = JSON.parse(e.REWARD_TIERS || '[]'); } catch (x) { tiers = []; } - if (!Array.isArray(tiers) || !tiers.length) tiers = [{ every: 25, cents: 250, lockDays: 14 }]; // PROPOSAL (not yet approved): each 25th verified sign-up from one resharer = a $2.50 bonus, withdrawable after 14 days + // Tiers are OFF by default: launch pays the flat reward only (Marty 2026-11-17). To turn the idea on later, set e.g. + // REWARD_TIERS=[{"every":25,"cents":250,"lockDays":14}] (each 25th verified sign-up from one resharer = a $2.50 bonus, withdrawable after 14 days). + if (!Array.isArray(tiers)) tiers = []; + tiers = tiers.filter(t => t && Number(t.every) > 0 && Number(t.cents) > 0); cfg = { port: Number(e.PORT || 3000), isProd: e.NODE_ENV === 'production', diff --git a/hubline.js b/hubline.js index 0a02329..457e9f2 100644 --- a/hubline.js +++ b/hubline.js @@ -15,10 +15,13 @@ async function walk(person, max) { for (let depth = 1; depth <= max; depth++) { if (!p.sponsor || !p.sponsor.id) return { ok: true, line }; if (seen.has(p.sponsor.id)) return { ok: true, line, loop: true }; // a loop in the hub data: stop - const r = await hubpeople.sponsorOf(p); if (!r.ok) return { ok: false, line }; + // the raw hub answer (blocked people included) so the walk goes on past a blocked sponsor; callers skip `blocked` entries + // (Boost orders: a blocked member earns nothing and the level passes up, Marty 2026-11-17) + if (!/^h_[0-9a-f]{16}$/.test(String(p.sponsor.id))) return { ok: true, line }; + const r = await hubpeople.resolve({ id: String(p.sponsor.id) }); if (!r.ok) return { ok: false, line }; if (!r.person) return { ok: true, line }; seen.add(r.person.id); - line.push({ depth, id: r.person.id, username: r.person.username ? String(r.person.username) : null, wallet: hubpeople.wallet(r.person) }); + line.push({ depth, id: r.person.id, username: r.person.username ? String(r.person.username) : null, wallet: hubpeople.wallet(r.person), blocked: !!r.person.blocked }); p = r.person; } return { ok: true, line }; diff --git a/public/assets/common.js b/public/assets/common.js index d75a636..509ac66 100644 --- a/public/assets/common.js +++ b/public/assets/common.js @@ -115,7 +115,7 @@ window.VAS = (function () { const tier = (rw.tiers || [])[0] || {}; const V = { cut: VAS.pct(sp.resharerBps), pot: VAS.pct(sp.potBps), levels: lvTxt, signup: VAS.usd(rw.cents), cap: String(rw.dailyCap), lockDays: String(tier.lockDays || 14), creditsPer: String(cr.per), creditsViews: String(cr.views), boostDays: String(b.days), boostUsd: '$' + b.usd, headline: String((c.ad || {}).headline || 60), - proposalTag: '', proposalNote: '', + proposalTag: '', proposalNote: '', tiersNote: tier.every ? 'Bigger tiers are credited at once and withdrawable after ' + (tier.lockDays || 14) + ' days.' : '', payoutsNote: rw.payouts ? '' : 'Sign-up reward payouts are switched off for now: verified rewards wait in the pending ledger.' }; document.querySelectorAll('[data-cfg]').forEach(el => { const k = el.dataset.cfg; if (V[k] != null) el.textContent = V[k]; }); }).catch(() => {}); diff --git a/public/index.html b/public/index.html index dd99db2..8663583 100644 --- a/public/index.html +++ b/public/index.html @@ -77,7 +77,7 @@
The buyer came in through your reshare link. The contract pays you 20% of that Boost in POL in the same transaction as the sponsor line. Nobody holds it; anyone can check it on Polygonscan.
Level 2 · POL from the reward pot
Someone brand new to the whole network joins through your link and confirms their email. Once the checks pass, $0.25 in POL is paid from the reward pot to your wallet, up to 10 a day. Bigger tiers are credited at once and withdrawable after 14 days.
+Someone brand new to the whole network joins through your link and confirms their email. Once the checks pass, $0.25 in POL is paid from the reward pot to your wallet, up to 10 a day.
Level 3 · ad credits
The buyer came in through your reshare link. The contract pays you 20% of that Boost in POL in the same transaction as the sponsor line. Nobody holds it; anyone can check it on Polygonscan.
Level 2 · POL from the reward pot
Someone brand new to the whole network joins through your link and confirms their email. Once the checks pass, $0.25 in POL is paid from the reward pot to your wallet, up to 10 a day. Bigger tiers are credited at once and withdrawable after 14 days.
+Someone brand new to the whole network joins through your link and confirms their email. Once the checks pass, $0.25 in POL is paid from the reward pot to your wallet, up to 10 a day.
Level 3 · ad credits
The buyer came in through your reshare link. The contract pays you ${cfg('cut', '20%')} of that Boost in POL in the same transaction as the sponsor line. Nobody holds it; anyone can check it on Polygonscan.
Level 2 · POL from the reward pot
Someone brand new to the whole network joins through your link and confirms their email. Once the checks pass, ${cfg('signup', '$0.25')} in POL is paid from the reward pot to your wallet, up to ${cfg('cap', '10')} a day. Bigger tiers are credited at once and withdrawable after ${cfg('lockDays', '14')} days.
+Someone brand new to the whole network joins through your link and confirms their email. Once the checks pass, ${cfg('signup', '$0.25')} in POL is paid from the reward pot to your wallet, up to ${cfg('cap', '10')} a day.
Level 3 · ad credits