Add total portfolio value, cached prices and balances
All checks were successful
check / check (push) Successful in 16s

Total USD value displayed in 2x type above wallet list on Home.
Value aggregation: getAddressValueUsd (ETH + all tokens) →
getWalletValueUsd → getTotalValueUsd. Price API cached for 5
minutes, balance fetches cached for 60 seconds. Both caches
are app-wide — repeated calls to refreshPrices/refreshBalances
are no-ops within the TTL.
This commit is contained in:
2026-02-25 18:44:29 +07:00
parent 64bd541013
commit 2a8c051377
2 changed files with 62 additions and 13 deletions

View File

@@ -173,6 +173,9 @@
<!-- ============ MAIN VIEW: ALL WALLETS & ADDRESSES ============ -->
<div id="view-main" class="view hidden">
<!-- total portfolio value -->
<div id="total-value" class="text-2xl font-bold mb-2"></div>
<!-- wallet list -->
<div id="wallet-list"></div>