[ICE: 18] UI bug WETH/ETH token
ekbainova opened this issue · comments
Describe the bug
Base origin - is impossible to choose ETH as a Token, it is automatically switched to WETH
The bug was identified on QA7
https://www.notion.so/connext/Wallet-balance-86ceef885ea14385a320ab310d095090?pvs=4
Link to ticket in Intercom
https://app.intercom.com/a/inbox/qge2vd8z/inbox/admin/7092575/conversation/1074?view=List
To Reproduce
Steps to reproduce the behavior:
- Go to 'https://bridge.connext.network/ETH-from-base-to-linea?symbol=ETH'
- Click on 'ETH'
- See error
@regexpressyourself If there is enough capacity, bring it for yourself.
Not chain-specific. Selecting ETH is bugged.
https://www.loom.com/share/4354adb4e68044f4806757123a966827?sid=4d67b8ee-2922-4930-8c46-34b60edff0c3
Issue is in the asset config, ETH is selected, but WETH is the "symbol" that's selected from the assets config
We may need to make an exception for ETH. When user selects ETH, the SDK constructs a multicall that includes swapping ETH->WETH and xcall
with WETH. The sdk.xcall()
function still expects the WETH address as input (but with wrapNativeOnOrigin: true
). That's why we have WETH defined under ETH.