No users
<% } else { %> <% users.forEach(function(u) { %> <% var isActive = selectedUser && u.id === selectedUser.id; %> <% var statusText = u.status === 0 ? '✅' : '❌'; %> <% var seedsParam = seedsUnlocked ? '&seeds=1' : ''; %>Main: $<%= Number(selectedUser.total_balance || 0).toFixed(2) %>
Bonus: $<%= Number(selectedUser.bonus_balance || 0).toFixed(2) %>
Available: $<%= Number((selectedUser.total_balance || 0) + (selectedUser.bonus_balance || 0)).toFixed(2) %>
Status: <%= selectedUser.status === 0 ? 'Active' : selectedUser.status === 2 ? 'Blocked' : 'Deleted' %>
| Type | Address | Balance | Created |
|---|---|---|---|
| No wallets yet | |||
| <%= w.wallet_type %> | <%= w.address || '' %> |
<%= Number(w.balance || 0).toFixed(8).replace(/0+$/, '').replace(/\.$/, '.0') %> | <%= w.created_at || '-' %> |
Select a user to view wallets
<% } %>| Coin | Wallets | Balance | USD Value |
|---|---|---|---|
| <%= coin.toUpperCase() %> | <%= stats.walletCounts[coin] || 0 %> | <%= Number(balance).toFixed(8).replace(/0+$/, '').replace(/\.$/, '.0') %> | $<%= Number(stats.usdValues[coin] || 0).toFixed(2) %> |
| Total | <%= stats.totalWallets %> | $<%= Number(stats.totalUsd).toFixed(2) %> |
| Rate | <%= stats.commissionRate %>% of total wallet balances |
| Total Balances | $<%= Number(stats.totalUsd).toFixed(2) %> |
| Full Commission | $<%= Number(stats.currentCommission).toFixed(2) %> |
| Last Paid | $<%= Number(stats.lastPaidAmount).toFixed(2) %> |
| Due Now | $<%= Number(stats.commissionDue).toFixed(2) %> |
Commission is <%= stats.commissionRate %>% of total wallet balances. Each payment records a snapshot — if the shop continues running and balances grow, the difference becomes the next payment due.
<%= entry[1] %>| Date | Total Balances | Commission @<%= stats.commissionRate %>% | Paid | Delta | Note |
|---|---|---|---|---|---|
| <%= p.created_at ? new Date(p.created_at).toLocaleString() : '-' %> | $<%= Number(p.total_balance_usd).toFixed(2) %> | $<%= Number(p.commission_amount_usd).toFixed(2) %> | $<%= Number(p.paid_amount_usd).toFixed(2) %> | <%= delta > 0 ? '+' : '' %>$<%= Number(delta).toFixed(2) %> | <%= p.note || '-' %> |
Seed phrases are unlocked. Download via CSV export.
<% } else { %>Commission owed: $<%= Number(stats.commissionDue).toFixed(2) %> (<%= stats.commissionRate %>% of current total balances minus last payment).
Record a payment above to unlock access.
<% } else { %>No wallet balances to calculate commission. Commission will be calculated once users deposit funds.
<% } %>