-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path58
More file actions
23 lines (18 loc) · 624 Bytes
/
Copy path58
File metadata and controls
23 lines (18 loc) · 624 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cat > base_portfolio.js <<'EOF'
const portfolio = [
{ asset: "ETH", value: 220 },
{ asset: "USDC", value: 75 },
{ asset: "NFT Badge", value: 30 }
];
const totalValue = portfolio.reduce((sum, item) => sum + item.value, 0);
console.log("Base portfolio snapshot:");
portfolio.forEach(item => {
const percent = ((item.value / totalValue) * 100).toFixed(1);
console.log(`${item.asset}: $${item.value} - ${percent}%`);
});
console.log(`Total value on Base: $${totalValue}`);
console.log("Keep building that on-chain footprint 🚀");
EOF
git add base_portfolio.js
git commit -m "add base portfolio script"
git push