SwaprHQ / swapr-dapp

DEX meta agregator
https://swapr.eth.limo/
GNU General Public License v3.0
49 stars 58 forks source link

Buying ETH on mainnet with Uniswap returns WETH instead #1798

Open berteotti opened 1 year ago

berteotti commented 1 year ago

Description When buying ETH on mainnet via Uniswap, it returns WETH instead of ETH.

How to Reproduce Steps to reproduce the behavior:

  1. Go to swap page
  2. Trade DAI to ETH via Uniswap
  3. Returns WETH instead of ETH

Expected behavior Return ETH

Screenshots image

Additional context Transaction link here: https://etherscan.io/tx/0xe01003cfd9c9507242ccabbabbd107d150f53185cb748ebb60d680ab94e4b7b3

berteotti commented 1 year ago

After some investigation the problem seems to come from this function.

Screenshot 2023-04-19 at 10 25 15