// Contract proof (Marty 2026-11-13): /api/contract answers straight from the live contract. (async () => { BL.renderNav('/contract'); BL.renderFooter(); const { $, esc, fmtPol } = BL; const d = await BL.getJSON('/api/contract'); if (d.error) { $('facts').innerHTML = '
' + esc(d.error) + '
'; return; } const ex = d.explorer; const addr = (a, label) => a ? '' + esc(a) + '' + (label ? ' ' + esc(label) + '' : '') : '-'; const rows = [ ['Contract', addr(d.address) + ' Verified source read the code'], ['Network', esc(d.chain) + ' (chain ' + esc(d.chainId) + ')'], ['Deployed', '' + esc(d.deployTx.slice(0, 18)) + '...' + (d.deployBlock ? ' block ' + esc(d.deployBlock) : '')], ['Owner', addr(d.owner, 'can pause new sales and change the keeper; cannot move funds or change the split')], ['Keeper', addr(d.keeper, 'the only wallet allowed to make momentum-fund buys')], ['Company A', addr(d.feeA)], ['Company B', addr(d.feeB)], ['Price feed', addr(d.priceFeed, 'Chainlink POL/USD')], ['Spot price now', d.quoteWei ? fmtPol(d.quoteWei) + ' POL ($5)' : '-'], ['Spots sold', esc(d.spotCount || '0')], ['Momentum fund', d.fundBalance ? fmtPol(d.fundBalance) + ' POL' : '-'], ['Sales', d.paused === 'true' ? 'paused' : 'open']]; $('facts').innerHTML = '| ' + r[0] + ' | ' + r[1] + ' |
|---|