-
Notifications
You must be signed in to change notification settings - Fork 101
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
Profile: Add COW to Metamask: Waterfall PR[3] #378
Conversation
CLA Assistant Lite: I have read the CLA Document and I hereby sign the CLA You can retrigger the CLA Action by commenting recheckcla in this Pull Request |
|
Hey @fairlighteth , great changes!
Thank you! |
@elena-zh
|
BTW, I noticed, that 'Add to MM' button is displayed in 1Inch wallet. I assume, that it might be related to the existing issue #322 , however, would be nice to fix, as the button does not work in this wallet. |
@elena-zh That's definitely an issue. In this case I'm inheriting the same component. So perhaps we update the original issue, saying that the component is also used on the Profile page. |
It is a bit another case.
|
@fairlighteth , I have noticed that the button does not work in MM integrated browser: I press on it, it shows me that the token in added, but it does not appear in the wallet's token list Skype_Video.mp4 |
@elena-zh Does it have the same behavior in the transaction modal, where we have this Add To Metamask button? If so, we should add this bug to the other issue. |
@fairlighteth , I have just retested it.. And it appears that the issue is no longer reproducible. |
@elena-zh No worries. Perhaps it is a bug/glitch worth keeping an eye on. |
@fairlighteth , I have retested the issue on |
@elena-zh We need a separate issue for this, given it touches on the |
@fairlighteth , I have reported #389 issue for this. |
@elena-zh Thank you 🙏🏼 |
just the chainid issue and all good |
* Buy COW route * Profile: Orange link hover and shorter Add to Metamask label: Waterfall PR[5] (#381) * Orange link on hover. * Add shorter label option. * Profile: Conditional 'Add Token' vs 'Copy contract address': Waterfall PR[6] (#383) * Detect MetaMask: conditional AddToMetaMask button * Click to copy token contract address. * Profile: Make elements responsive: Waterfall PR[7] (#384) * Mobile responsive. * Mobile responsive fix + add copy contract vCOW * Use string directly * Replace 1 by ChainId * Add check * Set default mainnet chain when deconstructing. * Update src/custom/pages/Profile/index.tsx Co-authored-by: dave <[email protected]> * Remove conditional check Co-authored-by: dave <[email protected]> Co-authored-by: dave <[email protected]>
Tested and addressed comments. Continuing merging. Feel free to review post-merge. |
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.
approve
Contract ↗ | ||
</ExtLink> | ||
<CopyHelper toCopy={V_COW_CONTRACT_ADDRESS[chainId]}> | ||
<div title="Click to copy token contract address">Copy contract</div> |
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.
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.
In this case it was not added as a preference per se: You've got both options there (View Contract and Copy Contract).
Rather it was a ported action from the COW balance card, where if you are not connected with MetaMask we show you 'Copy Contract' instead of 'Add Token' as a fall back.
Discussed with @elena-zh that it might not make sense to have 'Add Token' (to MetaMask) for vCOW (given it's non transferable anyway..) but might be OK to have the 'Copy contract' action.
Let me know your thoughts.
title="View contract" | ||
href={getBlockExplorerUrl(chainId, COW_CONTRACT_ADDRESS[chainId], 'address')} | ||
> | ||
Contract ↗ |
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.
More than contract, could be View Token and send you to Etherscan Token page?
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.
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.
Yes that might be a better destination. Agree View Token
looks more clear. Will check how it fits with the other labels.
Summary