cowprotocol / cowswap

🐮 CowSwap: First CoW Protocol UI
https://swap.cow.fi/
GNU General Public License v3.0
117 stars 89 forks source link

[Widget] Don't use injected provider if the provider is hanled by the host app #3875

Closed anxolin closed 7 months ago

anxolin commented 8 months ago

Currently, widget, if it doesn't have a provider connected, it will try to use the injected wallet.

If the connection is handled by the host dapp, it should not attempt injected widget connection. Doing so, creates some weird behaviour where we show a connected wallet when the host doesn't have one.

Image

Further more, it can make some user to connect with the wrong wallet (the host dapp is disconnected, and they connect with the wrong injected wallet)

anxolin commented 7 months ago

fixed