@@ -14,7 +14,7 @@ import { WalletSwitcher } from "./WalletSwitcher";
1414import { EoaEvmWalletSelector } from "./EoaEvmWalletSelector" ;
1515import { PortfolioItem } from "../lib/types" ;
1616import { aggregatePortfolioItems } from "../lib/portfolioHelpers" ;
17- import { ensurePortfolioItem } from "../lib/util" ;
17+ import { ensurePortfolioItem , imageMap } from "../lib/util" ;
1818
1919export function Portfolio ( ) {
2020 const {
@@ -140,6 +140,43 @@ export function Portfolio() {
140140
141141 // Show empty portfolio if we have a wallet but no assets
142142 if ( hasWallet && ! isLoading && assets . length === 0 ) {
143+ // Create placeholder assets with zero balances
144+ const placeholderAssets : PortfolioItem [ ] = [
145+ {
146+ address : "So11111111111111111111111111111111111111112" ,
147+ name : "Solana" ,
148+ symbol : "SOL" ,
149+ decimals : 9 ,
150+ logoURI : imageMap . solana ,
151+ price : 0 ,
152+ amount : 0 ,
153+ chain : "solana" ,
154+ priceChange24h : 0 ,
155+ } ,
156+ {
157+ address : "BTC" ,
158+ name : "Bitcoin" ,
159+ symbol : "BTC" ,
160+ decimals : 8 ,
161+ logoURI : "https://app.hyperliquid.xyz/coins/BTC.svg" ,
162+ price : 0 ,
163+ amount : 0 ,
164+ chain : "hyperliquid" ,
165+ priceChange24h : 0 ,
166+ } ,
167+ {
168+ address : "ETH" ,
169+ name : "Ethereum" ,
170+ symbol : "ETH" ,
171+ decimals : 18 ,
172+ logoURI : imageMap . eth ,
173+ price : 0 ,
174+ amount : 0 ,
175+ chain : "ethereum" ,
176+ priceChange24h : 0 ,
177+ } ,
178+ ] ;
179+
143180 return (
144181 < div
145182 className = { `h-full font-mono overflow-y-auto scrollbar-thin scrollbar-thumb-[#2D2D2D] scrollbar-track-transparent scrollable-container pb-16 md:pb-0 ${
@@ -148,12 +185,11 @@ export function Portfolio() {
148185 >
149186 < WalletSwitcher />
150187 { activeWallet === "eoaEvm" && < EoaEvmWalletSelector /> }
151- < PortfolioSummary
152- totalBalance = { 0 }
153- portfolioPnL = { 0 }
154- />
155- < div className = "flex-1 flex items-center justify-center" >
156- < p className = "text-gray-400 text-center" > No assets in this wallet</ p >
188+ < PortfolioSummary totalBalance = { 0 } portfolioPnL = { 0 } />
189+ < div className = "flex-1 space-y-2" >
190+ { placeholderAssets . map ( ( asset ) => (
191+ < PortfolioItemTile key = { asset . address } asset = { asset } />
192+ ) ) }
157193 </ div >
158194 </ div >
159195 ) ;
0 commit comments