Approved launch numbers; members earn for free; Boost = a 7-day board spot (placement only)
- config: 5 sponsor levels x 10% (company 20%), approved numbers labelled as such, POT_DAILY_CENTS display (2500). - Eligibility: a network member with a linked wallet earns a level or the resharer cut, Boost or not. /api/my/order drops line members with no wallet (compression); empty levels and the no-resharer cut go to the company. - shop.js: VASShop ABI after the contract fix (Purchase.boardDays, skus().boardDays, potDailyMaxCents, potCentsToday); purchase days from the chain. wire.js keeps the on-chain days. - Copy: removed "sponsor levels pay people who have bought a Boost / passed over / none qualified" and the proposal labels; Boost page, chatbot, contract page (split fixed forever, pot daily cap) say a Boost buys placement only. Assets ?v=2. - qa/e2e.mjs: deploys the new VASShop (5 x 10%, pot cap 2500, SKU 7 days); a no-wallet hub member between buyer and sponsor is skipped and both sponsors get exactly 10% without a Boost. 61/61. Chatbot QA 108/108. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -36,8 +36,8 @@
|
||||
</div>
|
||||
<section id="featured" hidden style="margin-top:32px"><h2 style="font-size:24px">Featured with credits</h2><div class="ads"></div></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/common.js?v=2"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
<script src="/assets/adpage.js?v=1"></script>
|
||||
<script src="/assets/adpage.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-2
@@ -26,8 +26,8 @@
|
||||
<section class="panel" style="margin-top:18px" id="testBox"><h2 style="font-size:22px">Staging: mark a test member</h2><p class="muted">Staging only. Lets a wallet post and reshare without a real network account.</p>
|
||||
<div class="row"><input type="text" id="tAddr" placeholder="0x wallet" style="max-width:420px"><input type="text" id="tName" placeholder="username" style="max-width:200px"><button class="btn sm" id="tGo" type="button">Mark</button></div><p id="status" class="note" hidden></p></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/common.js?v=2"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
<script src="/assets/admin.js?v=1"></script>
|
||||
<script src="/assets/admin.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Boost page: the split (live from the contract, else the proposal), the live POL price, and the Buy button.
|
||||
// Boost page: the split (live from the contract, else the approved launch numbers), the live POL price, and the Buy button.
|
||||
(async function () {
|
||||
const $ = VAS.$;
|
||||
VAS.wire('other').catch(() => {});
|
||||
@@ -6,8 +6,8 @@
|
||||
const rows = [['Resharer whose branch sold it', VAS.pct(sp.resharerBps)], ['Reward pot (pays sign-up rewards only)', VAS.pct(sp.potBps)]]
|
||||
.concat((sp.levelBps || []).map((x, i) => ['Sponsor level ' + (i + 1), VAS.pct(x)]));
|
||||
const used = (sp.resharerBps || 0) + (sp.potBps || 0) + (sp.levelBps || []).reduce((t, x) => t + x, 0);
|
||||
rows.push(['Company (the rest, plus any level nobody qualifies for)', VAS.pct(10000 - used)]);
|
||||
$('splitRows').innerHTML = rows.map(r => '<tr><td>' + r[0] + '</td><td class="n">' + r[1] + '</td></tr>').join('') + (sp.live ? '' : '<tr><td colspan="2" class="muted">Proposed numbers, not final.</td></tr>');
|
||||
rows.push(['Company (the rest, plus any level with nobody eligible in your line, and the resharer cut when there is no resharer)', VAS.pct(10000 - used)]);
|
||||
$('splitRows').innerHTML = rows.map(r => '<tr><td>' + r[0] + '</td><td class="n">' + r[1] + '</td></tr>').join('') + (sp.live ? '' : '<tr><td colspan="2" class="muted">Launch numbers. The contract is not live yet.</td></tr>');
|
||||
const live = !!(c.shop && c.shop.live);
|
||||
const qty = () => Number($('qty').value) || 1;
|
||||
async function price() {
|
||||
|
||||
@@ -21,7 +21,7 @@ window.VAS = (function () {
|
||||
+ '<nav class="links" aria-label="Main">' + links.map(l => '<a href="' + l[0] + '"' + (l[0] === active ? ' class="on" aria-current="page"' : '') + '>' + l[1] + '</a>').join('') + '</nav>'
|
||||
+ '<div class="row"><a class="btn sm" id="navSign" href="/my">Sign in</a><a class="btn sm ink" href="/my#post">Post your ad free</a></div></div>';
|
||||
document.body.prepend(h);
|
||||
getConfig().then(c => { if (c.staging) { const b = document.createElement('div'); b.className = 'stage-bar'; b.textContent = 'Staging copy for testing. Numbers marked as proposals are not final. No real payouts happen here.'; h.after(b); } }).catch(() => {});
|
||||
getConfig().then(c => { if (c.staging) { const b = document.createElement('div'); b.className = 'stage-bar'; b.textContent = 'Staging copy for testing. No real payouts happen here.'; h.after(b); } }).catch(() => {});
|
||||
getJSON('/api/me').then(m => { if (m.signedIn) { const a = $('navSign'); if (a) { a.textContent = m.username ? '@' + m.username : short(m.address); } } }).catch(() => {});
|
||||
if (framed) document.querySelectorAll('a[href^="/my"]').forEach(a => { a.target = '_blank'; a.rel = 'noopener'; });
|
||||
}
|
||||
@@ -105,18 +105,17 @@ window.VAS = (function () {
|
||||
async function copy(text, btn) { try { await navigator.clipboard.writeText(text); if (btn) { const o = btn.textContent; btn.textContent = 'Copied'; setTimeout(() => { btn.textContent = o; }, 1600); } } catch (e) { if (btn) { btn.textContent = 'Select the link above to copy it'; } } }
|
||||
return { MARK, $, esc, getConfig, short, framed, status, getJSON, post, n, pct, usd, renderNav, renderFooter, adCard, wire, featured, decorate, goHref, polOf, when, copy };
|
||||
})();
|
||||
// every page: header, footer and the numbers from /api/config (proposals are labelled as proposals)
|
||||
// every page: header, footer and the numbers from /api/config
|
||||
(function () {
|
||||
const boot = () => {
|
||||
VAS.renderNav(document.body.dataset.nav || ''); VAS.renderFooter();
|
||||
VAS.getConfig().then(c => {
|
||||
const sp = c.split || {}, rw = c.reward || {}, cr = c.credits || {}, b = c.boost || {};
|
||||
const prop = sp.live ? '' : '(proposal)';
|
||||
const lv = sp.levelBps || []; const lvTxt = lv.length ? (lv.every(x => x === lv[0]) ? lv.length + ' x ' + VAS.pct(lv[0]) : lv.map(VAS.pct).join(' / ')) : 'none';
|
||||
const tier = (rw.tiers || [])[0] || {};
|
||||
const V = { cut: VAS.pct(sp.resharerBps), pot: VAS.pct(sp.potBps), levels: lvTxt, signup: VAS.usd(rw.cents), cap: String(rw.dailyCap), lockDays: String(tier.lockDays || 14),
|
||||
creditsPer: String(cr.per), creditsViews: String(cr.views), boostDays: String(b.days), boostUsd: '$' + b.usd, headline: String((c.ad || {}).headline || 60),
|
||||
proposalTag: prop, proposalNote: sp.live ? '' : 'The percentages and amounts shown are proposals and are not final yet.',
|
||||
proposalTag: '', proposalNote: '',
|
||||
payoutsNote: rw.payouts ? '' : 'Sign-up reward payouts are switched off for now: verified rewards wait in the pending ledger.' };
|
||||
document.querySelectorAll('[data-cfg]').forEach(el => { const k = el.dataset.cfg; if (V[k] != null) el.textContent = V[k]; });
|
||||
}).catch(() => {});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Contract page: live facts from /api/contract (read from Polygon, cached 5 minutes), or the proposed rules before it is deployed.
|
||||
// Contract page: live facts from /api/contract (read from Polygon, cached 5 minutes), or the approved launch rules before it is deployed.
|
||||
(async function () {
|
||||
const el = VAS.$('facts'); const esc = VAS.esc;
|
||||
const d = await VAS.getJSON('/api/contract').catch(() => ({}));
|
||||
@@ -6,10 +6,10 @@
|
||||
const addr = (a, note) => (a ? '<a class="mono" href="' + esc(ex) + '/address/' + esc(a) + '" target="_blank" rel="noopener">' + esc(a) + '</a>' : '<span class="muted">not deployed yet</span>') + (note ? '<br><span class="muted" style="font-size:13px">' + note + '</span>' : '');
|
||||
const sp = d.split || {}; const lv = (sp.levelBps || []).map(VAS.pct).join(' / ');
|
||||
const rows = [
|
||||
['Contract', addr(d.address, 'VASShop on Polygon' + (d.proposal ? '. Not deployed: the numbers below are proposals.' : ''))],
|
||||
['Owner', addr(d.owner, 'Marty\'s Tangem hardware wallet. It can pause, set future prices and percentages, and change the keeper. It cannot take the reward pot.')],
|
||||
['Split of each Boost', 'Resharer ' + VAS.pct(sp.resharerBps) + ' · reward pot ' + VAS.pct(sp.potBps) + ' · sponsor levels ' + esc(lv) + ' · company the rest'],
|
||||
['Sign-up reward', VAS.usd(d.reward && d.reward.cents) + ' in POL, up to ' + esc(d.reward && d.reward.dailyCap) + ' a day per wallet' + (d.reward && !d.reward.payouts ? ' (payouts switched off for now)' : '')],
|
||||
['Contract', addr(d.address, 'VASShop on Polygon' + (d.proposal ? '. Not deployed yet: the numbers below are the launch numbers.' : ''))],
|
||||
['Owner', addr(d.owner, 'Marty\'s Tangem hardware wallet. It can pause, set Boost prices and the reward limits, and change the keeper. It can never change the split and cannot take the reward pot.')],
|
||||
['Split of each Boost', 'Resharer ' + VAS.pct(sp.resharerBps) + ' · reward pot ' + VAS.pct(sp.potBps) + ' · sponsor levels ' + esc(lv) + ' · company the rest (fixed in the contract, it can never change)'],
|
||||
['Sign-up reward', VAS.usd(d.reward && d.reward.cents) + ' in POL, up to ' + esc(d.reward && d.reward.dailyCap) + ' a day per wallet' + (d.reward && d.reward.potDailyCents ? '; the pot pays at most ' + VAS.usd(d.reward.potDailyCents) + ' a day across everyone' : '') + (d.reward && !d.reward.payouts ? ' (payouts switched off for now)' : '')],
|
||||
['Reward pot', d.live && d.pot ? VAS.polOf(d.pot.balanceWei) + ' POL now · ' + VAS.polOf(d.pot.fundedWei) + ' POL in · ' + VAS.polOf(d.pot.paidWei) + ' POL paid out' : '<span class="muted">' + esc(d.error || 'not deployed yet') + '</span>'],
|
||||
['Sales', d.live ? (d.paused ? '<b>Paused</b>' : 'Open') + ' · ' + VAS.n(d.orderCount) + ' orders' : '<span class="muted">not open yet</span>']
|
||||
];
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
[VAS.n((d.rewards || []).filter(r => r.status === 'paid').length), 'sign-up rewards paid']].map(x => '<div class="stat"><b>' + x[0] + '</b><span>' + x[1] + '</span></div>').join('');
|
||||
const tx = h => h ? '<a href="' + esc(ex) + '/tx/' + esc(h) + '" target="_blank" rel="noopener">verify</a>' : '';
|
||||
if (d.items.length) $('rows').innerHTML = d.items.map(r => {
|
||||
const lv = (r.pays || []).filter(p => p.kind >= 1 && p.kind <= 5).map(p => 'L' + p.kind + ' ' + pol(p.wei) + ' ' + who(p.to, p.name)).join('<br>') || '<span class="muted">none qualified</span>';
|
||||
const lv = (r.pays || []).filter(p => p.kind >= 1 && p.kind <= 5).map(p => 'L' + p.kind + ' ' + pol(p.wei) + ' ' + who(p.to, p.name)).join('<br>') || '<span class="muted">no sponsor line</span>';
|
||||
const co = (r.pays || []).find(p => p.kind === 0);
|
||||
return '<tr><td>' + VAS.when(r.at) + '</td><td>' + who(r.buyer, r.buyerName) + '</td><td class="n">' + VAS.usd(r.usdCents) + '<br>' + pol(r.weiPaid) + '</td><td>'
|
||||
+ (r.resharer ? who(r.resharer.to, r.resharer.name) + '<br>' + pol(r.resharer.wei) : '<span class="muted">none</span>') + '</td><td>' + lv + '</td><td class="n">' + pol(r.potWei) + '</td><td class="n">' + (co ? pol(co.wei) : '') + '</td><td>' + tx(r.tx) + '</td></tr>';
|
||||
|
||||
@@ -29,7 +29,7 @@ window.VASWallet = (function () {
|
||||
// networks advertise the WalletConnect RPC proxy
|
||||
// (rpc.walletconnect.org/v1/?chainId=…&projectId=…) as the chain RPC, and
|
||||
// wallets reject that query-string URL as "Invalid URL" when adding/switching
|
||||
// the network — the cause of Trust's "Invalid URL", MetaMask's switch loop,
|
||||
// the network: the cause of Trust's "Invalid URL", MetaMask's switch loop,
|
||||
// and the failed mobile buy (the chain switch never completed).
|
||||
const rpc = String(c.rpc || '').trim();
|
||||
const net = rpc ? Object.assign({}, base, { rpcUrls: { default: { http: [rpc] }, public: { http: [rpc] } } }) : base;
|
||||
|
||||
+5
-5
@@ -31,15 +31,15 @@
|
||||
<h2 style="font-size:28px">Where the POL goes</h2>
|
||||
<p style="color:var(--ink3)">The VASShop contract splits every Boost in the buyer's own transaction. Nobody holds it.</p>
|
||||
<div class="tbl"><table><tbody id="splitRows"></tbody></table></div>
|
||||
<p class="muted" style="font-size:14px">Sponsor levels pay people in your network sponsor line who have bought a Boost; anyone who has not is passed over and the share goes up the line (up to 20 places). A level nobody qualifies for goes to the company. If you did not arrive through someone's reshare link, the resharer share goes to the company.</p>
|
||||
<p class="muted" style="font-size:14px">A Boost buys placement only. Nobody needs to buy one to earn: sponsor levels pay the 5 nearest people in your network sponsor line who have a network sign-in and a linked wallet. Anyone without one is skipped and the share passes up to the next person who has. Levels left when the line runs out go to the company. If you did not arrive through someone's reshare link, the resharer share goes to the company. The split is fixed in the contract and can never change.</p>
|
||||
<p class="muted" style="font-size:14px">Pay with SafePal or any other crypto wallet on Polygon. Anything you send above the exact price comes back in the same transaction. A Boost buys advertising, not income.</p>
|
||||
</div>
|
||||
</div></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/common.js?v=2"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
<script src="/assets/wallet.js?v=1"></script>
|
||||
<script src="/assets/buy.js?v=1"></script>
|
||||
<script src="/assets/boost.js?v=1"></script>
|
||||
<script src="/assets/wallet.js?v=2"></script>
|
||||
<script src="/assets/buy.js?v=2"></script>
|
||||
<script src="/assets/boost.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-2
@@ -22,8 +22,8 @@
|
||||
<p id="status" class="note">One moment...</p>
|
||||
<div class="row" style="margin-top:16px"><a class="btn ink" href="/my">Sign in</a><a class="btn" href="/">Front page</a></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/common.js?v=2"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
<script src="/assets/join.js?v=1"></script>
|
||||
<script src="/assets/join.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
<li>A sign-up reward needs a keeper-signed voucher, used once, under the per-reward cap and the per-wallet daily cap, and never more than the pot holds.</li>
|
||||
<li>No proxy, no owner withdrawal of the pot, no self-destruct. The owner is Marty's Tangem hardware wallet.</li></ul></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/common.js?v=2"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
<script src="/assets/contract.js?v=1"></script>
|
||||
<script src="/assets/contract.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
<p>Crypto prices change. A reward or payment priced in dollars is paid in POL at the price when it is paid; its value can go down afterwards. Network fees apply to every transaction.</p>
|
||||
<p>Any example on this site is an illustration of how the contract splits a payment, not a prediction of what you will receive.</p>
|
||||
<p>TrustClickz. Questions: <a href="https://instantadpay.com/support?from=viraladsource">network support</a>.</p></main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/common.js?v=2"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
<script src="/assets/static.js?v=1"></script>
|
||||
<script src="/assets/static.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-2
@@ -108,8 +108,8 @@
|
||||
<div class="panel" id="hunt"><h3 style="margin:0 0 6px;font-size:19px">Hunt it on PolHunter</h3><p style="margin:0;color:var(--ink3)">A find code hides in one of the three "How an ad spreads" steps.</p></div>
|
||||
</div></div></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/common.js?v=2"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
<script src="/assets/front.js?v=1"></script>
|
||||
<script src="/assets/front.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-2
@@ -28,8 +28,8 @@
|
||||
</form>
|
||||
<p id="status" class="note" hidden></p>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/common.js?v=2"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
<script src="/assets/join.js?v=1"></script>
|
||||
<script src="/assets/join.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-2
@@ -25,8 +25,8 @@
|
||||
<section class="panel" style="margin-top:22px"><h2 style="font-size:26px">Sign-up rewards</h2><p class="muted" id="payNote" style="margin:6px 0 0"></p>
|
||||
<div class="tbl"><table><thead><tr><th>When</th><th>Resharer</th><th>Kind</th><th>Amount</th><th>Status</th><th>Proof</th></tr></thead><tbody id="rrows"><tr><td colspan="6" class="muted">No rewards yet.</td></tr></tbody></table></div></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/common.js?v=2"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
<script src="/assets/ledger.js?v=1"></script>
|
||||
<script src="/assets/ledger.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+3
-3
@@ -64,9 +64,9 @@
|
||||
<div class="row" style="margin-top:22px"><button class="btn sm" id="logout" type="button">Sign out</button><button class="btn sm" id="logoutAll" type="button">Sign out everywhere</button></div>
|
||||
</div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/common.js?v=2"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
<script src="/assets/wallet.js?v=1"></script>
|
||||
<script src="/assets/my.js?v=1"></script>
|
||||
<script src="/assets/wallet.js?v=2"></script>
|
||||
<script src="/assets/my.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-2
@@ -23,8 +23,8 @@
|
||||
<h2>Sharing</h2><p>Your account is part of the network: your username, wallet and sponsor are shared with the network hub so one account works on every network site. We do not sell personal data. Blockchain transactions are public by nature.</p>
|
||||
<h2>Your choices</h2><p>Ask network support to delete your data; the network hub removes it from every network site, except what the blockchain or the law keeps.</p>
|
||||
<p>TrustClickz. Questions: <a href="https://instantadpay.com/support?from=viraladsource">network support</a>.</p></main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/common.js?v=2"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
<script src="/assets/static.js?v=1"></script>
|
||||
<script src="/assets/static.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-2
@@ -23,8 +23,8 @@
|
||||
<label class="f" style="max-width:360px;margin-top:18px">Your network username<input type="text" id="kitUser" placeholder="username"></label>
|
||||
<div id="kit" style="margin-top:22px"></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/common.js?v=2"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
<script src="/assets/promote.js?v=1"></script>
|
||||
<script src="/assets/promote.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-2
@@ -50,8 +50,8 @@
|
||||
<div class="panel"><h2 style="font-size:26px">Where to see it</h2><p class="muted">Your rewards and credits are on <a href="/my">My ad tree</a>. Every paid reward and every Boost split is on the <a href="/ledger">public ledger</a> with its Polygon transaction.</p></div>
|
||||
</div></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/common.js?v=2"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
<script src="/assets/static.js?v=1"></script>
|
||||
<script src="/assets/static.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-2
@@ -27,8 +27,8 @@
|
||||
<h2>No promise of income</h2><p>What you buy is advertising. We do not promise any income, views, sign-ups or results. See the Earnings Disclaimer.</p>
|
||||
<h2>Changes</h2><p>We can change these terms and the program's numbers going forward; a change never alters a payment already made on chain.</p>
|
||||
<p>TrustClickz. Questions: <a href="https://instantadpay.com/support?from=viraladsource">network support</a>.</p></main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/common.js?v=2"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
<script src="/assets/static.js?v=1"></script>
|
||||
<script src="/assets/static.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user