Skip to content

✨ app: support exa token on base - #1150

Merged
cruzdanilo merged 4 commits into
mainfrom
fixes-base
Jul 28, 2026
Merged

✨ app: support exa token on base#1150
cruzdanilo merged 4 commits into
mainfrom
fixes-base

Conversation

@dieguezguille

@dieguezguille dieguezguille commented Jul 13, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features

    • Added support for Exa on Base.
    • Added support for swaps on Base.
    • Expanded token availability across supported networks using network-specific Exa tokens.
    • Improved swap token selection based on currently available markets.
  • Bug Fixes

    • Reduced duplicate token entries and excluded unsupported USDC.e variants from swap options.
    • Improved token loading when Exa is unavailable or cannot be resolved.

@changeset-bot

changeset-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 945f8a8

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

This PR includes changesets to release 2 packages
Name Type
@exactly/common Patch
@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 Jul 13, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Optional EXA deployment addresses are added to generated chain configuration. LI.FI token and balance handling becomes chain-aware, and allowlists incorporate generated addresses and protocol markets. Swap and funding queries use market-scoped cache keys, with Changesets recording package patch releases.

Changes

Chain-aware EXA and swap support

Layer / File(s) Summary
Optional EXA address wiring
common/wagmi.config.ts, .changeset/clever-memes-do.md
Loads an optional EXA deployment and emits its address through the generated Wagmi address mapping.
Chain-aware LI.FI token flows
src/utils/lifi.ts
Resolves EXA per chain, deduplicates token results, enriches balances when configured, and builds allowlists from generated addresses and protocol markets.
Protocol-scoped swap allowlists
src/components/swaps/Swaps.tsx, src/components/shared/FundingAlert.tsx
Passes current protocol markets to allowlist retrieval and includes them in React Query cache keys.
Package release metadata
.changeset/nice-moles-invent.md, .changeset/sour-items-strive.md
Records patch releases for mobile EXA and Base swap support.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant WagmiConfig
  participant GeneratedChain
  participant LifiUtils
  participant GetToken
  participant Swaps
  WagmiConfig->>GeneratedChain: generate optional exaAddress
  LifiUtils->>GeneratedChain: read exaAddress and allowlist
  LifiUtils->>GetToken: resolve EXA for active chain
  GetToken-->>LifiUtils: return EXA token metadata
  Swaps->>LifiUtils: request allowlist with protocolMarkets
  LifiUtils-->>Swaps: return market-scoped allowed tokens
Loading

Possibly related PRs

  • exactly/exa#1028: Both changes modify LI.FI balance handling and optional EXA token resolution in src/utils/lifi.ts.

Suggested reviewers: franm91, cruzdanilo, nfmelendez

🚥 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 matches the main change: adding EXA token support on Base across the app.
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 unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fixes-base
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch fixes-base

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.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request adds support for EXA and swaps on the Base network. It updates the wagmi configuration to load the EXA deployment and refactors the Li.Fi utility to dynamically use the EXA address instead of a hardcoded Optimism address, splitting the token allowlist by chain ID. The review feedback highlights two issues: a potential runtime TypeError in balancesOptions due to token.amount being a string instead of a bigint, and a case-sensitivity issue in the allowlist lookup because of a lowercase address entry.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/utils/lifi.ts
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: 88a062bba2

ℹ️ 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 common/wagmi.config.ts
Comment thread src/utils/lifi.ts Outdated
Comment thread src/utils/lifi.ts
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.84%. Comparing base (3fb2575) to head (945f8a8).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
src/utils/lifi.ts 0.00% 13 Missing ⚠️
src/components/shared/FundingAlert.tsx 0.00% 3 Missing ⚠️
src/components/swaps/Swaps.tsx 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1150      +/-   ##
==========================================
- Coverage   71.38%   70.84%   -0.55%     
==========================================
  Files         263      263              
  Lines       11598    11410     -188     
  Branches     3897     3815      -82     
==========================================
- Hits         8279     8083     -196     
- Misses       3024     3032       +8     
  Partials      295      295              
Flag Coverage Δ
e2e 70.84% <0.00%> (-0.40%) ⬇️

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: 2ef68c5296

ℹ️ 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

@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: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 9afca78b-58a0-4b1b-85b3-fbcf42a4bcb2

📥 Commits

Reviewing files that changed from the base of the PR and between 53ff381 and fbe082b.

📒 Files selected for processing (4)
  • .changeset/nice-moles-invent.md
  • .changeset/sour-items-strive.md
  • common/wagmi.config.ts
  • src/utils/lifi.ts

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: 9a91b00253

ℹ️ 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

@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: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: d7a067b3-5d3d-47bb-89ce-9642a834d95f

📥 Commits

Reviewing files that changed from the base of the PR and between 9a91b00 and a68a2b2.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (8)
  • .changeset/nice-moles-invent.md
  • .changeset/sour-items-strive.md
  • common/wagmi.config.ts
  • metro.config.cjs
  • package.json
  • src/components/shared/FundingAlert.tsx
  • src/components/swaps/Swaps.tsx
  • src/utils/lifi.ts

Comment thread src/utils/lifi.ts
@dieguezguille
dieguezguille force-pushed the fixes-base branch 3 times, most recently from 389500c to d83b6d4 Compare July 23, 2026 14:09
@dieguezguille
dieguezguille force-pushed the fixes-base branch 2 times, most recently from a7705e8 to 382144d Compare July 27, 2026 13:18
@cruzdanilo
cruzdanilo merged commit 945f8a8 into main Jul 28, 2026
10 of 12 checks passed
@cruzdanilo
cruzdanilo deleted the fixes-base branch July 28, 2026 19:09
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