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:
martbost
2026-11-17 05:19:56 -06:00
parent a6c72a4a40
commit 608ec6547b
29 changed files with 114 additions and 91 deletions
+3
View File
@@ -460,6 +460,9 @@ 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
// 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);
// 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;