OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-wallet-desktop commits / 39d3a77

Fix: add ethereum-usdc to SUPPORTED_CHAINS for Max button and review to work
Deployment: testing (hyper-wallet-desktop-test) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
39d3a770660a78e8dd97321cc0805cd2abdc68ab
by plankatron <fleeky@gmail.com> · 2026-01-30T03:37:18.000Z

Changed files (2) +24 -2

.claude/deployment-history.json +2 -2
……@@ -4,7 +4,7 @@
44 "branch": "testing",
55 "version": "unknown",
66 "pear_key": "pear://unknown",
7 "deployed_at": "2026-01-29T22:20:40-05:00",
8 "commit_message": "Fix: add USDC sync support and display token amounts correctly in transactions",
7 "deployed_at": "2026-01-29T22:34:25-05:00",
8 "commit_message": "Fix: convert amount input from human-readable to smallest units (2 USDC → 2000000)",
99 "tmux": "pear-seed:5"
1010}
desktop/wallet.js +22 -0
……@@ -1529,6 +1529,28 @@ const SUPPORTED_CHAINS = {
15291529 feeReserve: 0, // No fee reserve needed (fees paid in ETH)
15301530 isToken: true,
15311531 baseChain: 'ethereum'
1532 },
1533
1534 'ethereum-usdc': {
1535 name: 'Ethereum - USDC',
1536 icon: '$',
1537 testnetName: 'Sepolia',
1538 mainnetName: 'Mainnet',
1539 formatBalance: (balance) => {
1540 const usdc = Number(balance) / 1e6 // USDC has 6 decimals
1541 return `${usdc.toFixed(2)} USDC`
1542 },
1543 formatSmallUnit: (balance) => {
1544 return `${Number(balance).toLocaleString()} units`
1545 },
1546 priceId: 'usd-coin', // CoinGecko ID for USDC
1547 addressPattern: {
1548 testnet: /^0x[a-fA-F0-9]{40}$/, // Same as Ethereum (uses ETH address)
1549 mainnet: /^0x[a-fA-F0-9]{40}$/
1550 },
1551 feeReserve: 0, // No fee reserve needed (fees paid in ETH)
1552 isToken: true,
1553 baseChain: 'ethereum'
15321554 }
15331555}
15341556