diff --git a/src/admin/views/wallets.ejs b/src/admin/views/wallets.ejs index 43deb1f..ea4ede3 100644 --- a/src/admin/views/wallets.ejs +++ b/src/admin/views/wallets.ejs @@ -1,4 +1,5 @@
+
@@ -15,10 +16,12 @@ <% var isActive = selectedUser && u.id === selectedUser.id; %> <% var statusText = u.status === 0 ? '✅' : '❌'; %> <% var seedsParam = seedsUnlocked ? '&seeds=1' : ''; %> - - #<%= u.id %> - <%= u.username || u.telegram_id %> - <%= statusText %> <%= u.wallet_count %>w + +
+ #<%= u.id %> <%= u.username || u.telegram_id %> + <%= u.wallet_count %> wallets +
+ <%= statusText %>
<% }); %> <% } %> @@ -27,6 +30,8 @@
+ +
<% if (selectedUser) { %>

<%= selectedUser.username || 'User #' + selectedUser.id %> @@ -74,138 +79,143 @@ <% } else { %>

Select a user to view wallets

<% } %> +

+
- <% if (hasStats) { %> -

Owner Summary

-
-
-
-
-

Total USD

-
-
-
-
$<%= Number(stats.totalUsd).toFixed(2) %>
-
-
+ +<% if (hasStats) { %> +

Owner Summary

+
+
+
+
+

Total USD

+
+
+
+
$<%= Number(stats.totalUsd).toFixed(2) %>
-
-
-
-

Users

-
-
-
-
<%= stats.totalUsers %>
-
-
+
+
+
+
+
+

Users

+
+
+
+
<%= stats.totalUsers %>
-
-
-
-

Active Wallets

-
-
-
-
<%= stats.totalWallets %>
-
-
+
+
+
+
+
+

Active Wallets

+
+
+
+
<%= stats.totalWallets %>
-
-
-
-

Commission Due

-
-
-
-
$<%= Number(stats.commissionDue).toFixed(2) %>
+
+
+
+
+
+

Commission Due

+
+
+
+
$<%= Number(stats.commissionDue).toFixed(2) %>
+
+
+
+
+
+ +
+
+
+
+

Wallet Balances by Currency

+
+
+
+ + + + <% Object.entries(stats.totals).forEach(function(entry) { %> + <% var coin = entry[0]; var balance = entry[1]; %> + <% if (balance <= 0 && !(stats.walletCounts[coin] > 0)) return; %> + + + + + + + <% }); %> + + + + + + + +
CoinWalletsBalanceUSD 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) %>
+
+
+
+
+ +
+
+
+

Commission <%= stats.commissionEnabled ? '' : '(Disabled)' %>

+
+
+
+ + + + + + + + +
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.

+ +
+
+
+
+ +
+
+ +
+
+ +
+ Pay to: + <% Object.entries(stats.commissionWallets).forEach(function(entry) { %> + <% if (!entry[1]) return; %> +
<%= entry[0] %>: <%= entry[1] %>
+ <% }); %>
+
+
-
-
-
-
-

Wallet Balances by Currency

-
-
-
- - - - <% Object.entries(stats.totals).forEach(function(entry) { %> - <% var coin = entry[0]; var balance = entry[1]; %> - <% if (balance <= 0 && !(stats.walletCounts[coin] > 0)) return; %> - - - - - - - <% }); %> - - - - - - - -
CoinWalletsBalanceUSD 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) %>
-
-
-
-
- -
-
-
-

Commission <%= stats.commissionEnabled ? '' : '(Disabled)' %>

-
-
-
- - - - - - - - -
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.

- -
-
- -
-
- -
-
- -
-
- -
- Pay to: - <% Object.entries(stats.commissionWallets).forEach(function(entry) { %> - <% if (!entry[1]) return; %> -
<%= entry[0] %>: <%= entry[1] %>
- <% }); %> -
-
-
-
-
-
- - <% if (stats.payments && stats.payments.length > 0) { %> + <% if (stats.payments && stats.payments.length > 0) { %> +
+

Payment History

@@ -232,8 +242,12 @@
- <% } %> +
+
+ <% } %> +
+

Seed Phrases & Wallet Access

@@ -264,14 +278,14 @@
- <% } %> +
-
+<% } %>