Skip to content

🚑️ app: replace deprecated wallet balances endpoint - #1195

Merged
cruzdanilo merged 2 commits into
mainfrom
fixes-balance
Aug 4, 2026
Merged

🚑️ app: replace deprecated wallet balances endpoint#1195
cruzdanilo merged 2 commits into
mainfrom
fixes-balance

Conversation

@franm91

@franm91 franm91 commented Aug 4, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Bug Fixes

    • Improved wallet balance retrieval across supported networks, including native ETH and ERC-20 tokens.
    • Replaced the deprecated wallet balance lookup with a more reliable service.
    • Fixed token logo selection so supported assets display the correct built-in logos, including WETH/ETH.
    • Improved balance refreshes after successful bridging and surfaced individual refresh errors.
  • Chores

    • Prepared mobile app patch releases for wallet balance and token logo improvements.

@changeset-bot

changeset-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4fb9287

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@exactly/mobile Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@dieguezguille, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 2 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 9ac67fb9-80ae-4e13-a119-565c7b87984e

📥 Commits

Reviewing files that changed from the base of the PR and between 7bb86f0 and 4fb9287.

📒 Files selected for processing (5)
  • .changeset/perky-files-cross.md
  • .changeset/quick-webs-create.md
  • src/components/add-funds/Bridge.tsx
  • src/utils/assetLogos.ts
  • src/utils/lifi.ts

Walkthrough

The PR replaces Li.Fi wallet-balance retrieval with per-chain Alchemy JSON-RPC requests, validates and matches returned balances, updates bridge balance refreshes, prioritizes built-in token logos, and adds patch changesets for @exactly/mobile.

Changes

Wallet data updates

Layer / File(s) Summary
Alchemy wallet balance flow
src/utils/lifi.ts, .changeset/perky-files-cross.md
The balance loader uses derived Alchemy URLs, validates JSON-RPC responses, retrieves native and ERC-20 balances with pagination, filters zero balances, and matches results to known Li.Fi tokens.
Balance refresh integration
src/components/add-funds/Bridge.tsx
Bridge success handling directly refreshes each relevant account balance with zero stale time and reports individual fetch errors.
Token logo resolution
src/utils/assetLogos.ts, .changeset/quick-webs-create.md
getTokenLogoURI checks built-in asset logos before token metadata and normalizes WETH to ETH for built-in lookup. The changeset records the patch release.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Bridge
  participant balancesOptions
  participant AlchemyRPC
  Bridge->>balancesOptions: Refresh account balances
  balancesOptions->>AlchemyRPC: Request native and ERC-20 balances per chain
  AlchemyRPC-->>balancesOptions: Return validated paginated responses
  balancesOptions-->>Bridge: Return recognized non-zero balances
Loading

Possibly related PRs

  • exactly/exa#1028: Both PRs modify Li.Fi balance retrieval and filtering logic.
  • exactly/exa#1020: Both PRs modify bridge behavior in src/components/add-funds/Bridge.tsx.
  • exactly/exa#1181: Both PRs modify bridge transaction handling in src/components/add-funds/Bridge.tsx.

Suggested reviewers: cruzdanilo, dieguezguille

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the primary change: replacing the deprecated wallet balances endpoint.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fixes-balance
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch fixes-balance

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 12.98701% with 67 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.10%. Comparing base (42f126f) to head (4fb9287).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/utils/lifi.ts 9.45% 67 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1195      +/-   ##
==========================================
- Coverage   70.25%   70.10%   -0.16%     
==========================================
  Files         262      262              
  Lines       11507    11539      +32     
  Branches     3845     3856      +11     
==========================================
+ Hits         8084     8089       +5     
- Misses       3127     3154      +27     
  Partials      296      296              
Flag Coverage Δ
e2e 70.10% <12.98%> (-0.16%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 595685d163

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/utils/lifi.ts
Comment thread src/utils/lifi.ts Outdated
Comment thread src/utils/lifi.ts Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e016439a-5fd2-403b-8c98-e4818bf00fa0

📥 Commits

Reviewing files that changed from the base of the PR and between 42f126f and 595685d.

📒 Files selected for processing (4)
  • .changeset/perky-files-cross.md
  • .changeset/quick-webs-create.md
  • src/utils/assetLogos.ts
  • src/utils/lifi.ts

Comment thread .changeset/quick-webs-create.md Outdated
Comment thread src/utils/lifi.ts Outdated
Comment thread src/utils/lifi.ts Outdated
Comment thread src/utils/lifi.ts Outdated
Comment thread src/utils/lifi.ts Outdated
@cruzdanilo cruzdanilo changed the title Fixes balance 🚑️ app: replace deprecated wallet balances endpoint Aug 4, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7bb86f0929

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/utils/lifi.ts
Comment thread src/components/add-funds/Bridge.tsx Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 44747913-cc92-4c79-b1df-2937e8036282

📥 Commits

Reviewing files that changed from the base of the PR and between 595685d and 7bb86f0.

📒 Files selected for processing (5)
  • .changeset/perky-files-cross.md
  • .changeset/quick-webs-create.md
  • src/components/add-funds/Bridge.tsx
  • src/utils/assetLogos.ts
  • src/utils/lifi.ts

Comment thread src/utils/assetLogos.ts Outdated
Comment thread src/utils/lifi.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 96f94d446d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/utils/lifi.ts Outdated
Comment thread src/utils/lifi.ts Outdated
franm91 and others added 2 commits August 4, 2026 13:50
co-authored-by: guillermo dieguez <dev@guillermodieguez.com>
co-authored-by: guillermo dieguez <dev@guillermodieguez.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4fb9287398

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/utils/lifi.ts
@cruzdanilo
cruzdanilo merged commit 4fb9287 into main Aug 4, 2026
11 of 12 checks passed
@cruzdanilo
cruzdanilo deleted the fixes-balance branch August 4, 2026 17:45
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