Dollar value at today's POL price on the member's own pages (Marty, 2026-10-22, Brian's ask; US dollars, not a dollar token): /api/public/polusd serves the contract's own package rate (Chainlink POL/USD) cached 5 min on the server; Overview 'POL earned' shows '≈ $x.xx today', every Earnings line gets '≈ $x.xx', and a note under Earnings gives the rate, when it was updated, and that it is today's value, not the payout-day value. Browser re-reads at most every 2 min; no outside price service. QA member walk 0 bugs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -196,7 +196,7 @@
|
||||
</div>
|
||||
<div class="statx c-cyan">
|
||||
<div class="pl"><svg viewBox="0 0 24 24"><rect x="3" y="6" width="18" height="13" rx="2"/><path d="M3 10h18"/><circle cx="16.5" cy="14.5" r="1.4"/></svg></div>
|
||||
<div><div class="nv mono" id="dbEarned">0</div><div class="lb">POL earned</div><span class="chip" id="dbEarnedChip" hidden></span></div>
|
||||
<div><div class="nv mono" id="dbEarned">0</div><div class="lb">POL earned <span class="muted" id="dbEarnedUsd"></span></div><span class="chip" id="dbEarnedChip" hidden></span></div>
|
||||
</div>
|
||||
<div class="statx c-violet">
|
||||
<div class="pl"><svg viewBox="0 0 24 24"><circle cx="12" cy="7" r="3.2"/><circle cx="5" cy="17" r="2.6"/><circle cx="19" cy="17" r="2.6"/><path d="M12 10v3M12 13l-5 2M12 13l5 2"/></svg></div>
|
||||
@@ -745,6 +745,7 @@
|
||||
<div class="card">
|
||||
<h3>Earnings</h3>
|
||||
<p class="muted small">Every payout the contract has sent to your wallet. Each line links to the transaction.</p>
|
||||
<p class="muted small" id="earnUsdNote" style="margin-top:-4px"></p>
|
||||
<div class="feed" id="earnFeed"><div class="row muted">Nothing yet.</div></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
@@ -1187,7 +1188,7 @@
|
||||
<script src="/assets/wallet.js?v=20260911a"></script>
|
||||
<script src="/assets/promo.js?v=20261016p"></script>
|
||||
<script src="/assets/support.js?v=20261016a"></script>
|
||||
<script src="/assets/my.js?v=20261022gp"></script>
|
||||
<script src="/assets/my.js?v=20261022usd"></script>
|
||||
<script src="/assets/chat.js?v=20261016n"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user