✨ app: support exa token on base - #1150
Conversation
🦋 Changeset detectedLatest commit: 945f8a8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
|
Note Reviews pausedIt 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 Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughOptional 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. ChangesChain-aware EXA and 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
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
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. Comment |
There was a problem hiding this comment.
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.
88a062b to
6779039
Compare
There was a problem hiding this comment.
💡 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".
Codecov Report❌ Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
6779039 to
2ef68c5
Compare
There was a problem hiding this comment.
💡 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".
2ef68c5 to
fbe082b
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 9afca78b-58a0-4b1b-85b3-fbcf42a4bcb2
📒 Files selected for processing (4)
.changeset/nice-moles-invent.md.changeset/sour-items-strive.mdcommon/wagmi.config.tssrc/utils/lifi.ts
f963393 to
a240501
Compare
e3c80c2 to
9a91b00
Compare
There was a problem hiding this comment.
💡 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".
9a91b00 to
a68a2b2
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: d7a067b3-5d3d-47bb-89ce-9642a834d95f
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (8)
.changeset/nice-moles-invent.md.changeset/sour-items-strive.mdcommon/wagmi.config.tsmetro.config.cjspackage.jsonsrc/components/shared/FundingAlert.tsxsrc/components/swaps/Swaps.tsxsrc/utils/lifi.ts
389500c to
d83b6d4
Compare
a7705e8 to
382144d
Compare
Summary by CodeRabbit
New Features
Bug Fixes