Open
Description
Bug Description
When a user disconnects their mm the injected provider still returns their account 0 information. The provider appears to still be accessible. (We can still get L2 quotes, for example.) Things fall apart when the user attempts to construct a transaction (see screenshot).
Only at this point does mm return null for active account, etc.
Steps to Reproduce
- Go to app.uniswap.org
- Unlock metamask
- connect an account
- lock metamask
- input swap info
- attempt swap
- observe error
Expected Behavior
User's account info should be disabled immediately when the user locks their account.
Additional Context
This seems like a metamask bug, but we may be able to get around it if metamask emits events on lock. @NoahZinsmeister is looking into this rn.