Description
useWalletBalance makes a single balance fetch and immediately shows an error state if the network request fails. Transient network issues cause the balance to show as failed for the entire session. Adding automatic retry with exponential backoff (up to 3 retries) makes the hook resilient to brief outages.
Acceptance Criteria
Context
- Target file:
src/hooks/useWalletBalance.ts
Description
useWalletBalancemakes a single balance fetch and immediately shows an error state if the network request fails. Transient network issues cause the balance to show as failed for the entire session. Adding automatic retry with exponential backoff (up to 3 retries) makes the hook resilient to brief outages.Acceptance Criteria
Context
src/hooks/useWalletBalance.ts