Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement redux logic for switching active token - closes #1947 #1968
What issue have I solved?
How have I implemented/fixed it?
This PR includes the following changes.
Added service actions, reducer and api service file.
The intention of these files are for check/retrieve every time the token (LSK, BTC) switch change the settings of token to properly set the active one and after that retrieve the prices for BTC and LSK.
How has this been tested?
For test this I had to call the action creator pricesRetrieved from the service action file and see how update/retrieve the prices for the tokens for this the service reducer must be check and see how that get updated from.
This PR is just for the add the functionality and needs to be tested as a whole once the BTC be available in the UI with the switcher.