-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
|
Hey @anxolin , nice changes!
|
const V_COW_TOKEN_MAINNET = new Token( | ||
SupportedChainId.MAINNET, | ||
V_COW_CONTRACT_ADDRESS[SupportedChainId.MAINNET] || '', | ||
18, | ||
'vCOW', | ||
'CoW Protocol Virtual Token' | ||
) | ||
|
||
const V_COW_TOKEN_XDAI = new Token( | ||
SupportedChainId.XDAI, | ||
V_COW_CONTRACT_ADDRESS[SupportedChainId.XDAI] || '', | ||
18, | ||
'vCOW', | ||
'CoW Protocol Virtual Token' | ||
) | ||
|
||
const V_COW_TOKEN_RINKEBY = new Token( | ||
SupportedChainId.RINKEBY, | ||
V_COW_CONTRACT_ADDRESS[SupportedChainId.RINKEBY] || '', | ||
18, | ||
'vCOW', | ||
'CoW Protocol Virtual Token' | ||
) | ||
|
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.
Any reason for this?
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.
sorry for including this in the PR, not a big reason tbh. I needed at first V_COW_TOKEN_MAINNET
to be declared to use it for something else. Then i was not needed it any more but I just left it like that.
I think is easier to read though, but happy to roll that back if u feel is better
db66801
to
dbcf8ed
Compare
Done!
Yes, i used the same code. We rely on Metamask API for this. I'm not sure it can be done. Anyways, I just reuse the code as a low hanging fruit. I think it's goodish enough given the big list of things we have
Same as above. We depend on MM allowing this |
Approved |
Summary
Adds a new button to add to Metamask the VCow token
To Test