Ledger: 'POL paid out by the contract' (the total includes the company share)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
async function load() {
|
||||
const d = await BL.getJSON('/api/ledger?n=100'); if (d.error) return;
|
||||
const t = d.totals || {};
|
||||
$('totals').innerHTML = [['Spots sold', t.spots || 0], ['Members', t.members || 0], ['POL paid out', fmtPol(t.paidOutWei || '0', 2)], ['Momentum fund', t.fundWei ? fmtPol(t.fundWei, 2) + ' POL' : '-']]
|
||||
$('totals').innerHTML = [['Spots sold', t.spots || 0], ['Members', t.members || 0], ['POL paid out by the contract', fmtPol(t.paidOutWei || '0', 2)], ['Momentum fund', t.fundWei ? fmtPol(t.fundWei, 2) + ' POL' : '-']]
|
||||
.map(x => '<div class="stat"><b>' + esc(x[1]) + '</b><span>' + esc(x[0]) + '</span></div>').join('');
|
||||
$('rows').innerHTML = d.items.length ? d.items.map(it => {
|
||||
const when = it.at ? new Date(it.at).toLocaleString() : '';
|
||||
|
||||
+1
-1
@@ -17,6 +17,6 @@
|
||||
<div id="rows"><p class="muted">Loading the ledger...</p></div></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=3"></script>
|
||||
<script src="/assets/ledger.js?v=1"></script>
|
||||
<script src="/assets/ledger.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user