neonlabsorg / uniswap-interface

🦄 An open source interface for the Uniswap protocol
https://app.uniswap.org
GNU General Public License v3.0
1 stars 0 forks source link

We should check chain id and show error if chain id doesn't from our networks #22

Closed gigimon closed 2 years ago

gigimon commented 2 years ago

We have a big problem with neonswap because we can connect any metamask with any chain id and create transaction to "non-exist address".

I verified this problem.

Steps to reproduce:

  1. Change Metamask network to "Ethereum mainnet"
  2. Go to neonswap.live and connect metamask
  3. Try any swap (it works) and send transaction to: 0x12993d55b96db38947d12753f6ce09ab9fe721a7

How to fix:

If metamask not connected to our chain id - block all operations and show "Invalid network"