Uniswap / Uniswap/interface

"Swap failed" when using Trust wallet with UniswapX

Open
#7,396 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Bug Description
In Trust Wallet Dapp browser when I tried a swap on Ethereum with UniswapX enabled it fails.

I tried using both Trust Wallet mobile app and Firefox web browser (scanned WalletConnect QR code using Trust Wallet mobile app).

Steps to Reproduce
In Trust Wallet Dapp browser load app.uniswap.org.
Select Ethereum blockchain.
In settings enable UniswapX.
Select the assets.
Enter quantity.
Click on Swap.

A modal appears that says "Confirming swap" with an animated progress circle for a short while.
Then a "Swap failed" message appears with a Retry button.

Press Retry.

"Confirming swap" then "Swap failed" message appears again.

In settings enable Local Routing. This disables UniswapX.
Click on Swap.
Swap is successful.

Expected Behavior
Swap is successful with no error.

Additional Context
I actually received more using Local Routing, so why should we use UniswapX?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue identifies app.uniswap.org, Trust Wallet, Ethereum, UniswapX, and Local Routing, but no source file or test. Start by reproducing the swap through Trust Wallet with UniswapX enabled, then compare it with Local Routing. Done means an Ethereum swap completes successfully through UniswapX without the “Swap failed” result.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.