Skip to content

Comments #1

@bucko13

Description

@bucko13
  • fiat symbols: I wonder if there's an API we can hit for that
  • feeds: Instead of using https it'd probably be better to use bcurl. 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 since https is a nodejs module. In the browser you would usually use fetch. 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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions