aee1ccc36a
Buying (VBBShop 0x36F6...07D7): Packages page has live Buy buttons for the 10 and 40 credit packs (USD price + live POL from quoteWei, SafePal or any other crypto wallet, one-time, never a subscription, where the payment goes); My Banners has "Add the banner look ($2)" on each waiting or in-loop banner (SKU 3, ref = banner id) and a 40-character teaser editor once it has the look. POST /api/my/order builds the member's buy() call on the server (fresh keeper voucher when the hub knows their sponsor, else no sponsor); the page checks the connected wallet is the member's VBB account (explains how to switch if not), checks the balance, sends with Polygon's fee floor (/api/gas), waits on /api/tx, nudges the watcher (/api/my/paid) and polls until the credits or the look arrive. Public: /api/quote, /api/gas, /api/tx/<hash>; /api/config has shop {live, contract} + explorer. The banner look on the loop: double border + star, hover teaser (always shown on touch screens; default = the link's site). Only Tokens still says coming soon. wallet.js gains sendTx/waitTx/balance (DLB flow).
Weekly prize payouts (prize.js): each Central-time week's pot = 10% of its VBBShop sales (usdCents of Purchase events by block time), $20 floor (company top-up shown to admin), $50 cap internal, half per board, 50/30/20. Every Monday the app prepares last week's plan (winners, wallets, USD; POL quoted live from the Chainlink feed the contract uses). /admin "Approve and pay" (two clicks): refuses unless PRIZE_KEY is the contract's prizeWallet(), the feed is fresh and the wallet holds the POL + gas (says how much more to send); then once per week (docstore.claim in MySQL + plan status), consecutive nonces, each hash saved as sent, stops at the first unclear send (never auto-retried), receipts watched. Ties: earlier to reach the count wins (leaderboards use the same rule). A winner that cannot be paid (the prize or company wallet) is skipped and the rest move up; an unfilled place stays in the prize wallet. /leaders shows past winners with transaction links. Posts nothing anywhere. Compose passes PRIZE_KEY.
Tests: smoke 192/192 (stand-in chain answers quoteWei + receipts: quote, order calldata + voucher, look purchase, teaser, prizes API, UI Buy buttons). New qa/chain.mjs on a local anvil with the real VBBShop + mock feed: buy -> Purchase -> credits, voucher binds sponsor, 30/10/60 split, overpay refunded, banner look; prize prepare -> short refusal -> pay 6 transfers exact POL -> paid once: 29/29. common.js?v=3, vbb.css?v=4.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42 lines
3.0 KiB
HTML
42 lines
3.0 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
|
|
<title>Promote | Viral Banner Blitz</title>
|
|
<meta name="description" content="Promote Viral Banner Blitz: your personal links, ready-made creatives in every common size, short lines, headlines, an email and social posts.">
|
|
<link rel="canonical" href="https://viralbannerblitz.com/promote">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:site_name" content="Viral Banner Blitz">
|
|
<meta property="og:title" content="Promote | Viral Banner Blitz">
|
|
<meta property="og:description" content="Promote Viral Banner Blitz: your personal links, ready-made creatives in every common size, short lines, headlines, an email and social posts.">
|
|
<meta property="og:url" content="https://viralbannerblitz.com/promote">
|
|
<meta property="og:image" content="https://viralbannerblitz.com/art/og-share.png">
|
|
<meta property="og:image:width" content="1200">
|
|
<meta property="og:image:height" content="630">
|
|
<meta property="og:image:alt" content="Viral Banner Blitz: a community banner loop that moves with every verified visitor">
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:title" content="Promote | Viral Banner Blitz">
|
|
<meta name="twitter:description" content="Promote Viral Banner Blitz: your personal links, ready-made creatives in every common size, short lines, headlines, an email and social posts.">
|
|
<meta name="twitter:image" content="https://viralbannerblitz.com/art/og-share.png">
|
|
|
|
<meta name="theme-color" content="#ffd400">
|
|
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
|
|
<link rel="stylesheet" href="/assets/vbb.css?v=4">
|
|
<link rel="stylesheet" href="/assets/kit.css?v=1">
|
|
</head>
|
|
<body>
|
|
<main class="wrap">
|
|
<section class="hero"><span class="eyebrow"><i></i>Share the loop</span><h1>Promote <em>Viral Banner Blitz</em></h1><p class="lead">Your links, creatives in every common size, and copy you can paste anywhere. Everything carries your network username.</p></section>
|
|
<div class="card" id="who"><h3>Your network username</h3>
|
|
<p class="muted small" id="whoNote">Your InstantAdPay or LinkSpin username works here. Sign in on <a href="/my">My Banners</a> and it fills in by itself.</p>
|
|
<form class="kit-who" id="whoForm"><input id="whoIn" autocomplete="off" spellcheck="false" maxlength="42" placeholder="your username"><button class="btn" type="submit">Use it</button></form></div>
|
|
<div id="status" class="note" hidden></div>
|
|
<div id="kit"><p class="muted">Loading the kit...</p></div>
|
|
</main>
|
|
<script src="/assets/common.js?v=3"></script>
|
|
<script src="/assets/kitpage.js?v=1"></script>
|
|
<script src="/assets/promote.js?v=1"></script>
|
|
</body>
|
|
</html>
|