aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers
diff options
context:
space:
mode:
authorbitpshr <mail@bitpshr.net>2018-04-16 23:21:06 +0800
committerbitpshr <mail@bitpshr.net>2018-04-16 23:47:06 +0800
commitd0447f90583275868bb72aa7ae8f670bf3668173 (patch)
tree66e9b6bce487e22f030bfc3f892500f744a1ebb8 /ui/app/reducers
parenta350e80feea6747a5e10088ac6ec15171a590a65 (diff)
downloadtangerine-wallet-browser-d0447f90583275868bb72aa7ae8f670bf3668173.tar
tangerine-wallet-browser-d0447f90583275868bb72aa7ae8f670bf3668173.tar.gz
tangerine-wallet-browser-d0447f90583275868bb72aa7ae8f670bf3668173.tar.bz2
tangerine-wallet-browser-d0447f90583275868bb72aa7ae8f670bf3668173.tar.lz
tangerine-wallet-browser-d0447f90583275868bb72aa7ae8f670bf3668173.tar.xz
tangerine-wallet-browser-d0447f90583275868bb72aa7ae8f670bf3668173.tar.zst
tangerine-wallet-browser-d0447f90583275868bb72aa7ae8f670bf3668173.zip
Maintain token prices using a background service
Diffstat (limited to 'ui/app/reducers')
-rw-r--r--ui/app/reducers/metamask.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js
index d6b6de3b0..1ed049be2 100644
--- a/ui/app/reducers/metamask.js
+++ b/ui/app/reducers/metamask.js
@@ -177,23 +177,6 @@ function reduceMetamask (state, action) {
conversionDate: action.value.conversionDate,
})
- case actions.UPDATE_CONTRACT_EXCHANGE_RATES:
- const { payload: { newExchangeRates } } = action
- return {
- ...metamaskState,
- contractExchangeRates: newExchangeRates,
- }
-
- case actions.UPDATE_CONTRACT_EXCHANGE_RATE:
- const { payload: { address, rate } } = action
- return {
- ...metamaskState,
- contractExchangeRates: {
- ...metamaskState.contractExchangeRates,
- [address]: rate,
- },
- }
-
case actions.UPDATE_TOKENS:
return extend(metamaskState, {
tokens: action.newTokens,