-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
- fiat symbols: I wonder if there's an API we can hit for that
- feeds: Instead of using
httpsit'd probably be better to usebcurl. It's got async/await support and also parses the responses for you so it's a lot easier to manage. I'm actually surprised that worked sincehttpsis a nodejs module. In the browser you would usually usefetch. My guess is it was a polyfill by webpack or babel (another reason to use something that's going to work "normally" in the browser) - feeds: I feel like these could actually just be a store of strings of the endpoints to use as a part of the redux store. Then you have middleware that essentially retrieves the currently set price feed endpoint and calls whatever that is set to. The advantage of this construction is that developers can add whatever feeds they want without even needing to submit a PR since you would just need to decorate your store.
I think that's it :). Just style comments basically. It works and it follows the important conventions which are the most important things!
Metadata
Metadata
Assignees
Labels
No labels