Fix: buy links wallet first; achievement milestones use live buyerCount

- Buying now ensures the wallet is LINKED to the account before the purchase
  (one signature if not linked). Without it, a wallet only connected for the
  faucet bought successfully but credits resolved against member id 0 and never
  showed until a manual link. Matches the "buying links your wallet" promise.
- Dashboard computed achievement milestones from buyerCount BEFORE reading it
  from chain (always 0), so Surge/Circuit/Nexus never unlocked even when
  qualification advanced. Moved the milestone block after the chain read.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-07 07:24:26 -05:00
parent d275822cd4
commit 1363bd7b0b
3 changed files with 24 additions and 15 deletions
+4 -4
View File
@@ -4,7 +4,7 @@
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Member area | InstantAdPay</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&display=swap">
<link rel="stylesheet" href="/assets/site.css?v=20260907h">
<link rel="stylesheet" href="/assets/site.css?v=20260907i">
</head>
<body class="bo-body">
@@ -641,9 +641,9 @@
</div>
</div>
</div>
<script src="/assets/common.js?v=20260907h"></script>
<script src="/assets/common.js?v=20260907i"></script>
<script src="/assets/wallet.js?v=20260907f"></script>
<script src="/assets/my.js?v=20260907h"></script>
<script src="/assets/chat.js?v=20260907h"></script>
<script src="/assets/my.js?v=20260907i"></script>
<script src="/assets/chat.js?v=20260907i"></script>
</body>
</html>