Sponsor follow + one network holding tank + Sponsor check (Marty, 2026-10-22, approved 1-3)
Same design as InstantAdPay (shared sponsorfollow.js). Deliberate sponsor changes (tank adoption, rescue, release, adoption window ending, admin edit) are recorded and travel on the iapsync rows; InstantAdPay's deliberate changes are applied here only when the member is not bound or binding on the LinkSpin contract (memberId, wallet on chain, or an engine activation in flight), newer than our own, and both sides agreed before (or no sponsor here). Bound / diverged / race cases change nothing and are logged. Ordinary rows keep the fill-empty rule, except a sponsor emptied on purpose here is not refilled by an ordinary row. Carry: an InstantAdPay batch holds its members (carry.hold) so no auto-activation starts mid-batch; ensureOnChain waits, then re-reads the account so the contract binds the settled sponsor; wallets from a batch are linked after every sponsor decision; the wallet hook skips activation while a follow is pending and activates once it is settled. Registry keeps the follow record (loop guard) and a deliberate clear. Network tank, Admin > Members > Sponsor check and the partner endpoints as on InstantAdPay. Rows without the new facts hash as before (no resend on deploy). Tests: qa/sponsorfollow.test.cjs 27/27, qa/carry-hold.test.cjs ok, two-server e2e (in the InstantAdPay repo) 20/20, QA member walk 0 bugs. No sponsor was changed on production. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+8
-1
@@ -210,6 +210,13 @@
|
||||
<p class="small muted" style="margin:12px 0 6px">Adoptions (newest first)</p>
|
||||
<div class="tablewrap"><table class="adm-table" id="tankAdopt"></table></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-head"><h3>Sponsor check: InstantAdPay and LinkSpin</h3><span class="sub" id="scSub">members on both sites whose sponsor differs</span></div>
|
||||
<p class="small muted">Deliberate changes (a tank adoption, a rescue, a release, the end of an adoption window, an admin edit) follow to the other site until the member is bound on that site's contract. Everything else keeps the first sponsor. To settle a difference, pick the side whose sponsor is right: it is applied on the other site, unless the member is already bound there.</p>
|
||||
<p><button class="btn small" id="scRun" type="button">Run the check</button></p>
|
||||
<div class="tablewrap"><table class="adm-table" id="scTable"></table></div>
|
||||
<details style="margin-top:10px"><summary class="small muted">Recent sponsor follow activity on both sites</summary><div class="tablewrap"><table class="adm-table" id="scLog"></table></div></details>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-head"><h3>Members</h3><span class="sub" id="memSub">newest first</span></div>
|
||||
<p style="margin:0 0 10px"><input id="memFilter" placeholder="Filter by email, username, member # or sponsor" style="width:100%"></p>
|
||||
@@ -500,6 +507,6 @@
|
||||
|
||||
<script src="/assets/common.js?v=20261018p25"></script>
|
||||
<script src="/assets/admin-kb.js?v=20261020kb"></script>
|
||||
<script src="/assets/admin.js?v=20261020m1"></script>
|
||||
<script src="/assets/admin.js?v=20261020m1"></script><script src="/assets/admin-sponsorcheck.js?v=20261022sc"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user