-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabled the trade panel if Optimism is not connected #1416
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, the only other thing I was thinking is we can also replace the CrossMarginUnsupported
with this so we have a single component to handle this across both futures types.
Sounds like a good idea. @platschi do you want to have a more generic component in the new PR or in this PR? |
I don't mind updating the cross margin part actually in a separate PR as I have a couple of ideas to improve the state there in general. |
Description
Disable the trade panel if the wallet is not connected or the network is unsupported
Related issue
Kwenta/kwenta-private#324
Motivation and Context
Make sure the user can only interact with the trade panel when connecting the optimism mainnet or optimism goerli.
How Has This Been Tested?
Case 1: No wallet connected
connect wallet
connect wallet
Case 2: Connected to Polygon
Switch to L2
Switch to L2
Screenshots (if appropriate):