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:
@@ -460,10 +460,10 @@ const server = http.createServer(async (req, res) => {
|
||||
const a = store.adOf(me); if (!a || a.status !== 'live') return json(res, 400, { error: 'Post your text ad first. A Boost is for your ad.' });
|
||||
const lo = await hubline.lineOf({ wallet: me }, shop.MAX_LINE);
|
||||
if (!lo.ok) return json(res, 503, { error: 'Your sponsor line could not be checked with the network just now. Try again in a minute, so your team gets paid.' });
|
||||
// eligibility (Marty 2026-11-17): a network member (hub) with a linked wallet earns a level, Boost or not. Dropping the
|
||||
// eligibility (Marty 2026-11-17): a network member (hub, not blocked) with a linked wallet earns a level, Boost or not. Dropping the
|
||||
// ineligible here IS the compression: each level passes up to the next eligible person; the contract pays places 1..5 and
|
||||
// whatever levels are left when the line runs out go to the company
|
||||
const line = lo.line.filter(x => x.wallet && x.wallet !== me).map(x => x.wallet);
|
||||
const line = lo.line.filter(x => x.wallet && !x.blocked && x.wallet !== me).map(x => x.wallet);
|
||||
// the resharer whose branch sold it: the reshare link this buyer came through (last touch), never the buyer
|
||||
const via = viaOf(req); const vs = via ? store.share(via.code) : null;
|
||||
const resharer = vs && vs.step > 0 && vs.owner !== me ? vs.owner : null;
|
||||
|
||||
Reference in New Issue
Block a user