Holding tank batches (Marty 2026-11-15), master switch tankBatches OFF
Active members with their own paid package ($20+ InstantAdPay, $25+ LinkSpin via the refuel record) receive tank people in batches: Paid 10, Fueled 20 (counted refuel streak or a $50+ package), Twin Engine 25 (both engines this cycle or the top package, the live catalog's highest, $500 today), +5 per further consecutive refuel month up to 50. Every 2 days per sponsor, topped up to their size, dealt by rotation highest tier first from tank.adoptable() (grace, rule 3, LinkSpin adoptions respected), never self, own upline, adopted twice, flagged, spam, mistyped, erased or unsubscribed. Same tank.adopt path (sponsor change, chat, "X is now your sponsor" email, switch-on reminders); one notice per batch to the sponsor. Uncontacted after 7 days -> back to the tank as 'unreached' (not counted). Tank feed: payments-topic card + live toast, sponsor/count/level only. Member panel "How to get fed leads" (tankfeed.js). Every number is a site setting. 5xYourTeam draft gets its own cap (fiveXDraftCap, default 10): open draft picks only; plain adoptions, the 24-hour safety net and batches each count their own people. Admin: GET /api/admin/tank/batches/preview (read-only) + /api/admin/tank/batches. Chatbot: coming soon only. qa/tank-batch.test.mjs (60 checks) in run.sh member. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+5
-2
@@ -19,7 +19,7 @@
|
||||
// and someone on this contract in their line (tank.partnerEligibility); free members cannot adopt
|
||||
// - the pool = tank.waiting() (rule 3 already applied: nobody the hub reports locked on any contract or sponsored, nobody adopted
|
||||
// on LinkSpin) minus spam / suspended / flagged, throwaway or mistyped email domains, and anyone adopted twice already
|
||||
// - max 10 open picks a coach (and the tank's people-held-at-once cap); max 2 adoptions per person (every pick counts, both sites)
|
||||
// - max 10 open picks a coach (site setting fiveXDraftCap, its own cap since 2026-11-15, not the tank's); max 2 adoptions per person (every pick counts, both sites)
|
||||
// - a pick that has not STARTED (payouts on or a first purchase) in 3 days goes back to the pool; a coach cannot release one in its
|
||||
// first 48 hours; a person who has had their 2 adoptions stays with the coach (the tank sweep rule); started picks stay
|
||||
// - never anyone locked on a network contract: asked fresh at adopt and at every return; a hub that does not answer refuses / waits
|
||||
@@ -109,7 +109,10 @@ async function ensureTables() {
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4`); // every partner call, with its reason
|
||||
}
|
||||
|
||||
async function init(opts) { R = opts; if (R.tank && R.tank.GRACE_MS) RULES.graceMs = R.tank.GRACE_MS; await ensureTables(); }
|
||||
// the draft's own cap (Marty 2026-11-15: "5x your team's draft is a different thing altogether"): site setting fiveXDraftCap (default 10),
|
||||
// counted over open draft picks only; the member's own tank adoptions and holding tank batches never share it (tank.partnerEligibility)
|
||||
const capOf = () => { const n = Math.round(Number(R && R.maxOpen ? R.maxOpen() : 10)); return n >= 1 && n <= 100 ? n : 10; };
|
||||
async function init(opts) { R = opts; if (R.tank && R.tank.GRACE_MS) RULES.graceMs = R.tank.GRACE_MS; Object.defineProperty(RULES, 'maxOpen', { get: capOf, enumerable: true, configurable: true }); await ensureTables(); }
|
||||
|
||||
// ---- signature ----
|
||||
function sign(ts, raw, secret) { return crypto.createHmac('sha256', secret || SECRET()).update('draft.v1.' + ts + '\n' + raw).digest('hex'); }
|
||||
|
||||
Reference in New Issue
Block a user