Skip to content

Add Arbitrum network support to balance fetching#2087

Merged
MusabShakeel576 merged 1 commit into
qafrom
claude/serene-noether-osU2b
May 24, 2026
Merged

Add Arbitrum network support to balance fetching#2087
MusabShakeel576 merged 1 commit into
qafrom
claude/serene-noether-osU2b

Conversation

@MusabShakeel576
Copy link
Copy Markdown
Contributor

Summary

This PR adds support for the Arbitrum network to the balance fetching functionality, enabling users to view their native ETH balances and prices on Arbitrum alongside existing supported networks (Ethereum mainnet, Fuse, and Base).

Key Changes

  • Import Arbitrum chain: Added arbitrum to the viem chains imports in both hooks/useBalances.ts and constants/tokens.ts
  • Balance fetching: Extended fetchTokenBalances to fetch native ETH balance on Arbitrum using the public client
  • Price fetching: Added price fetching for Arbitrum's native ETH token via the CoinGecko API
  • Token processing: Implemented logic to process and format Arbitrum ETH balances, including:
    • Validation of fulfilled balance promises
    • Price value extraction with fallback to 0
    • Token metadata lookup from the token list
    • Creation of native token objects with proper chain ID and token information
  • Token constants: Updated NATIVE_TOKENS and NATIVE_COINGECKO_TOKENS mappings to include Arbitrum's ETH token configuration

Implementation Details

The Arbitrum implementation follows the existing pattern used for Base and Fuse networks:

  • Uses the same native token symbol ('ETH') and CoinGecko ID ('ethereum')
  • Maintains consistent token object structure with TokenType.NATIVE designation
  • Properly handles promise settlement status checks before processing balance data
  • Integrates seamlessly with the existing token list lookup mechanism

https://claude.ai/code/session_01ThYo8D5jLeC2PfaiSGC7Ud

Fetch and display the safe's native ETH balance on Arbitrum alongside
Ethereum, Fuse, and Base. Users who sent ETH to their Arbitrum safe
address can now see and transfer those funds from the Send flow.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
solid-app Ignored Ignored May 24, 2026 9:55am
solid-app-staging Ignored Ignored May 24, 2026 9:55am

Request Review

@MusabShakeel576 MusabShakeel576 merged commit 48231ad into qa May 24, 2026
4 of 5 checks passed
@MusabShakeel576 MusabShakeel576 deleted the claude/serene-noether-osU2b branch May 24, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants