Uniswap / Uniswap/interface

Using trust wallet with BSC chain selected, it's possible to get uniswap to send transaction thinking they are sent on mainnet

Open
#2,316 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

A user using app.uniswap.org and trust wallet on BSC sent thoses transactions :

Thoses are perfectly valid if they were sent on ETH instead.

Steps to Reproduce

? ...

Expected Behavior

Uniswap should print the "Unsuported network" error message and just block the transaction.

Additional Context

Since the estimation has gone thru it's possible the uniswap used the embeded web3 provider or that the network was switched after the estimation was done.
I would bet this code on trust wallet not emiting the event of network changing.

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

No file, test, or entry point is named. Start by reviewing the two BscScan transactions and reproducing the Trust Wallet flow with BSC selected; trace how network changes and transaction estimation are handled, and consider the issue done when unsupported-network transactions are blocked as described.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.