Reward tiers off by default (flat $0.25 at launch); hub-blocked sponsors are skipped (pass-up)
- config: REWARD_TIERS defaults to none (the every-25th $2.50 tier stays available as a setting); the "bigger tiers" sentence only shows when a tier is configured. - hubline: the walk reads the raw hub answer so it continues past a blocked sponsor instead of stopping; entries carry `blocked`. /api/my/order skips blocked members like no-wallet ones, so the level passes up. - e2e: B -> no-wallet -> hub-blocked (with a wallet) -> O -> S: both skipped, O and S each get 10%, the blocked one gets nothing; tiers off checked. 63/63. Chatbot QA 108/108. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user