balancednetwork / balanced-network-interface

An open-source interface for the Balanced Network protocol (https://balanced.network)
https://app.balanced.network/
22 stars 21 forks source link

Update the wallet to show the balance of all EVM chains #1351

Open parrot9design opened 3 weeks ago

parrot9design commented 3 weeks ago

Let's update the wallet section (top right) to include all EVM chains tied to the connected wallet.

Apps like Uniswap, Rango Exchange, and Zerion automatically pull in your wallet balance for each EVM chain, even though it's technically only active on one of those chains at a time. We already display the balance of non-active chains in the Swap and Transfer tabs, so it's disorienting when you can't see them tallied in the wallet section.

337085651-ad331244-0e50-4745-b5c1-7b0256926a24

I'm not sure if this logic has been implemented yet, but here's the mockup of how to handle more than 4 chains in the wallet:

wallet-dropdown-many-chains-2

While working on this, we should also fix the sign-in logic so Balanced only connects to a wallet you've explicitly chosen. If you use Hana in your browser with multiple wallets, every time you view a different wallet in Hana the EVM wallet connected to Balanced will change to match. I'm worried this is going to catch someone out eventually. I can't reproduce this issue in Metamask, but it's possible other wallets are also affected.

FezBox commented 1 week ago

https://github.com/balancednetwork/balanced-network-interface/pull/1347 This will be used for the cross chain Ui in pull request 1347 close #1347