Skip to content
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

Feature/add currencies #263

Closed
wants to merge 5 commits into from
Closed

Feature/add currencies #263

wants to merge 5 commits into from

Conversation

rickycodes
Copy link
Contributor

@rickycodes rickycodes commented Aug 22, 2020

A user reported MetaMask/metamask-mobile#1777 for which I patched with MetaMask/metamask-mobile#1787 but after giving it some further thought I realised it would probably make more sense to add this to controllers so we can share this across products (making this the single source of truth for both the extension and mobile).

TLDR; this will effectively replace: https://github.com/MetaMask/metamask-mobile/blob/master/app/util/infura-conversion.json (on mobile) and https://github.com/MetaMask/metamask-extension/blob/develop/ui/app/helpers/constants/available-conversions.json (on the extension).

I'm going to open a corresponding PR in mobile that will work with this (once it's merged and published)

that's done now, the mobile PR changes to consume this are open here: MetaMask/metamask-mobile#1792

if it makes sense I can also open one on the extension so we're using this for conversions in both.

I'm also not entirely satisfied with this structure and open to suggestions. this might be a little weird because it doesn't really follow the "controllers" conversion we're using?

it would also probably make sense to add a couple tests verifying some of the more important currencies are here (I was surprised to discover we were missing SAI on mobile)

I added this and now I am contemplating if it's of value 🤔

/cc @whymarrh @Gudahtt @estebanmino

@rickycodes rickycodes closed this Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant