yearn/ape-tax

Add chain switcher

Closed this issue · 2 comments

It would be useful for discovery to have a switcher or a dropdown which allows connecting to chains where ape.tax is available.

Metamask has an RPC method to add/switch chains
https://docs.metamask.io/guide/rpc-api.html#wallet-addethereumchain

The needed metadata can be obtained here
https://chainid.network/chains.json

Using addethereumchain to change chain on Metamask doesn't work really well. You cannot do Ethereum for example. I've added a combobox to select the network and a warning for you to know you are in the wrong chain. Check it out.

Closed by #66