Make every dollar figure evergreen via the live POL price
The config API now carries the hourly-cached polUsd; the start page, training callout, join-page shortfall, and chatbot (canned + AI prompt) all compute entry dollars live instead of quoting stale numbers. Post 6/7 copy drops hard "$27 = entry" claims for pocket-change framing (the video's $27 stays - it describes weekly wasted spending, which is evergreen).
This commit is contained in:
+2
-1
@@ -1,3 +1,4 @@
|
||||
fetch('/api/public/config').then(function(r){return r.json()}).then(function(c){if(c&&c.polUsd>0)window.__polUsd=c.polUsd;}).catch(function(){});
|
||||
/* RM Circle — public direct-join engine (dormant fallback; served only when
|
||||
config.dappFallbackPublic is on). Talks only to window.ethereum (CSP-safe).
|
||||
Auto-assigns the current rotation sponsor, registers the member's own wallet,
|
||||
@@ -66,7 +67,7 @@
|
||||
var need=regValue();
|
||||
if(lastBal>=need){ box.style.display='none'; return; }
|
||||
var shortPol=Math.max(62,Math.ceil(Number(need-lastBal)/1e18)+5);
|
||||
$('fundMsg').textContent='This wallet holds '+polStr(lastBal)+' POL; the Premium entry is '+polStr(need)+' POL plus a little gas (like a car, every blockchain transaction burns a bit of fuel - keep some in the tank). You can buy the remaining ~'+shortPol+' POL with a debit/credit card, Apple Pay, or Google Pay — delivered straight to this wallet.';
|
||||
$('fundMsg').textContent='This wallet holds '+polStr(lastBal)+' POL; the Premium entry is '+polStr(need)+' POL plus a little gas (like a car, every blockchain transaction burns a bit of fuel - keep some in the tank). You can buy the remaining ~'+shortPol+' POL'+(window.__polUsd>0?' (about $'+Math.round(Number(shortPol.replace(/,/g,''))*window.__polUsd)+')':'')+' with a debit/credit card, Apple Pay, or Google Pay — delivered straight to this wallet.';
|
||||
box.dataset.pol=shortPol;
|
||||
box.style.display='block';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user