Skip to content

feat(widget): sync destination and source chains on token selection#672

Open
effie-ms wants to merge 1 commit intomainfrom
feat-sync-chains
Open

feat(widget): sync destination and source chains on token selection#672
effie-ms wants to merge 1 commit intomainfrom
feat-sync-chains

Conversation

@effie-ms
Copy link
Contributor

Which Linear task is linked to this PR?

https://linear.app/lifi-linear/issue/EMB-311/sync-destination-chain-to-source-chain-in-default-exchange-mode

Why was it implemented this way?

In useTokenSelect, when a token is selected and the opposite side has no token, we now also unset "All Networks" on the opposite side (which enables setting its chain to the same one - same-chain swap when the 2nd token is not set). This is applied in default exchange mode only.

Visual showcase (Screenshots or Videos)

Screen.Recording.2026-03-16.at.19.47.23.mov

Checklist before requesting a review

  • I have performed a self-review and testing of my code.
  • This pull request is focused and addresses a single problem.

@effie-ms effie-ms self-assigned this Mar 16, 2026
@github-actions
Copy link

Hey! This is your new endpoint: https://66835827.widget-featsyncch.pages.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants