Approved launch numbers; members earn for free; Boost = a 7-day board spot (placement only)
- config: 5 sponsor levels x 10% (company 20%), approved numbers labelled as such, POT_DAILY_CENTS display (2500). - Eligibility: a network member with a linked wallet earns a level or the resharer cut, Boost or not. /api/my/order drops line members with no wallet (compression); empty levels and the no-resharer cut go to the company. - shop.js: VASShop ABI after the contract fix (Purchase.boardDays, skus().boardDays, potDailyMaxCents, potCentsToday); purchase days from the chain. wire.js keeps the on-chain days. - Copy: removed "sponsor levels pay people who have bought a Boost / passed over / none qualified" and the proposal labels; Boost page, chatbot, contract page (split fixed forever, pot daily cap) say a Boost buys placement only. Assets ?v=2. - qa/e2e.mjs: deploys the new VASShop (5 x 10%, pot cap 2500, SKU 7 days); a no-wallet hub member between buyer and sponsor is skipped and both sponsors get exactly 10% without a Boost. 61/61. Chatbot QA 108/108. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,10 @@
|
||||
// checks (hub-new, confirmed email, not the resharer's device/IP/wallet, no throwaway email, daily cap, fraud score).
|
||||
// PAYOUTS ARE OFF (REWARD_PAYOUTS=1 turns the relay on) until Marty confirms the amounts.
|
||||
// L3 verified views through a branch: ad credits for the resharer, spent on their own ad. Ad credits buy advertising, not income.
|
||||
// Every number below marked PROPOSAL is Claude's proposal (2026-11-16); Marty has not set them.
|
||||
// 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.
|
||||
const path = require('path');
|
||||
|
||||
let cfg = null;
|
||||
@@ -19,7 +22,7 @@ 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: each 25th verified sign-up from one resharer = a $2.50 bonus, withdrawable after 14 days
|
||||
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
|
||||
cfg = {
|
||||
port: Number(e.PORT || 3000),
|
||||
isProd: e.NODE_ENV === 'production',
|
||||
@@ -32,18 +35,19 @@ function get() {
|
||||
chainName: e.CHAIN_NAME || 'Polygon',
|
||||
publicRpc: e.PUBLIC_RPC || 'https://polygon-bor-rpc.publicnode.com',
|
||||
walletConnectProjectId: (e.WALLETCONNECT_PROJECT_ID || '').trim(),
|
||||
// ---- Boost (PROPOSAL $5). The contract's SKU holds the real price; this is display copy and must match it.
|
||||
// ---- Boost ($5, approved). The contract's SKU holds the real price and board days; this is display copy and must match it.
|
||||
// A Boost puts the ad at the top of the reshare board for `days` days per unit. One-time, never a subscription.
|
||||
boost: { sku: int(e.BOOST_SKU, 1, 1, 1000), usd: num(e.BOOST_USD, 5, 0.01, 1000), days: int(e.BOOST_DAYS, 7, 1, 365), maxQty: 10 },
|
||||
// VASShop split (PROPOSAL; owner-settable on the contract, read live from it when the contract is set): basis points
|
||||
split: { resharerBps: int(e.SPLIT_RESHARER_BPS, 2000, 0, 9000), potBps: int(e.SPLIT_POT_BPS, 1000, 0, 9000), levelBps: String(e.SPLIT_LEVEL_BPS || '500,500,500,500,500').split(',').map(x => int(x, 0, 0, 9000)).slice(0, 5), maxDepth: 20 },
|
||||
// ---- L2 sign-up rewards (PROPOSAL $0.25, 10 a day per resharer). Payouts OFF unless REWARD_PAYOUTS=1.
|
||||
// VASShop split (approved 2026-11-17; IMMUTABLE on the contract, read live from it when the contract is set): basis points
|
||||
split: { resharerBps: int(e.SPLIT_RESHARER_BPS, 2000, 0, 9000), potBps: int(e.SPLIT_POT_BPS, 1000, 0, 9000), levelBps: String(e.SPLIT_LEVEL_BPS || '1000,1000,1000,1000,1000').split(',').map(x => int(x, 0, 0, 9000)).slice(0, 5), maxDepth: 20 },
|
||||
// ---- L2 new-member rewards ($0.25 in POL, 10 a day per resharer, approved). Payouts OFF unless REWARD_PAYOUTS=1.
|
||||
// potDailyCents = the contract's global pot cap across everyone (display; the contract enforces it). PROPOSAL $25/day.
|
||||
reward: { cents: int(e.REWARD_CENTS, 25, 1, 10000), dailyCap: int(e.REWARD_DAILY_CAP, 10, 0, 1000), tiers,
|
||||
payouts: e.REWARD_PAYOUTS === '1', fraudHold: int(e.FRAUD_HOLD, 50, 1, 100), voucherDays: int(e.REWARD_VOUCHER_DAYS, 30, 1, 365),
|
||||
joinWindowHours: int(e.JOIN_WINDOW_HOURS, 72, 1, 720) },
|
||||
joinWindowHours: int(e.JOIN_WINDOW_HOURS, 72, 1, 720), potDailyCents: int(e.POT_DAILY_CENTS, 2500, 1, 100000) },
|
||||
hubJoin: e.HUB_JOIN === '1', // a confirmed sign-up is written to the hub (join-all). OFF on staging: a dry check instead
|
||||
mail: { from: String(e.MAIL_FROM || 'ViralAdSource <noreply@viraladsource.com>'), url: String(e.MAIL_URL || '').trim() }, // MAIL_URL unset = no mail sent (staging)
|
||||
// ---- L3 ad credits (PROPOSAL: 10 credits per 100 verified views through a branch; 1 credit = 1 verified view of your own ad)
|
||||
// ---- L3 ad credits (approved: 10 credits per 100 verified views through a branch; 1 credit = 1 verified view of your own ad)
|
||||
credits: { per: int(e.CREDITS_PER, 10, 1, 1000), views: int(e.CREDITS_VIEWS, 100, 1, 100000), slots: int(e.CREDIT_SLOTS, 2, 0, 10) },
|
||||
// verified visitors (the VBB / ViralAdBlitz rules)
|
||||
visitSeconds: int(e.VISIT_SECONDS, 6, 2, 60),
|
||||
|
||||
Reference in New Issue
Block a user