Friday Bonus Hunts: extra Friday hunts banked on InstantAdPay

lib/fridaybank.js asks InstantAdPay (HMAC with HUNT_SSO_SECRET, 3-minute
cache) how many days Sat-Thu the hunter opened an inbox ad and watched a
video. On Friday that many extra hunts are added to the daily limit, capped at
live missions minus the normal three so every bonus has a mission to hunt.
If InstantAdPay can't be reached the bonus is 0: it never grants hunts it could
not verify. The board shows the week's chips and today's steps; the done-for-
today overlay now points at banking. dailyMsg counts past five.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-26 15:22:23 -05:00
parent 7bdb1c2c6a
commit b9e0e40a93
5 changed files with 547 additions and 462 deletions
+2 -1
View File
@@ -19,6 +19,7 @@
<h2>Your missions</h2>
<div class="sub" id="rangeLine">Each find pays a random drip. Your codes are yours alone.</div>
<div id="refSlot"></div>
<div id="fbank" hidden style="margin:12px 0 16px;padding:14px 16px;border-radius:16px;border:1px solid var(--edge-hi);background:rgba(130,71,229,.12)"></div>
<div class="grid" id="missions"><div class="card"><p>Loading your board…</p></div></div>
</section>
@@ -47,6 +48,6 @@
<footer class="foot">Rewards are for completed missions, not income. The daily pool is limited; when it is spent, claims close until midnight Central. Cryptocurrency involves risk of loss.</footer>
</div>
<div class="modal" id="shareModal" hidden><div class="modal-card"><button class="modal-x" id="shareClose" type="button" aria-label="Close">×</button><div id="shareBody"></div></div></div>
<script src="/app.js?v=18"></script>
<script src="/app.js?v=19"></script>
</body>
</html>