| … | … | @@ -1529,6 +1529,28 @@ const SUPPORTED_CHAINS = { |
| 1529 | 1529 | feeReserve: 0, // No fee reserve needed (fees paid in ETH) |
| 1530 | 1530 | isToken: true, |
| 1531 | 1531 | 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' |
| 1532 | 1554 | } |
| 1533 | 1555 | } |
| 1534 | 1556 | |