Skip to content

fix(#266): replace hardcoded balances with real Stellar Horizon fetch - #378

Open
JoesWalker wants to merge 1 commit into
kellymusk:mainfrom
JoesWalker:fix/266-real-stellar-wallet-balances
Open

fix(#266): replace hardcoded balances with real Stellar Horizon fetch#378
JoesWalker wants to merge 1 commit into
kellymusk:mainfrom
JoesWalker:fix/266-real-stellar-wallet-balances

Conversation

@JoesWalker

Copy link
Copy Markdown
  • Rewrite useBalances hook to call fetchStellarBalances from lib/wallet/freighter.ts instead of returning static fixtures
  • Fall back to publicKey from walletStore when no walletAddress prop is passed
  • Map Stellar asset codes (XLM, cNGN, USDC, etc.) to TokenBalance shape
  • Remove hardcoded BTC/ETH entries — those are not Stellar assets
  • Add error state and 30-second polling interval
  • Expose error field on BalanceContext so consumers can show error states

Closes #266

…zon fetch

- Rewrite useBalances hook to call fetchStellarBalances from
  lib/wallet/freighter.ts instead of returning static fixtures
- Fall back to publicKey from walletStore when no walletAddress prop is passed
- Map Stellar asset codes (XLM, cNGN, USDC, etc.) to TokenBalance shape
- Remove hardcoded BTC/ETH entries — those are not Stellar assets
- Add error state and 30-second polling interval
- Expose error field on BalanceContext so consumers can show error states

Closes kellymusk#266
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

@JoesWalker is attempting to deploy a commit to the kelly musk's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@JoesWalker Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

[Bug] Wallet balances are static hardcoded fixtures — not fetched from real wallet

1 participant