diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-04-17 07:49:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-17 07:49:53 +0800 |
commit | e4eb69dcc290a7e7eb27cab7ec57a8097345d81e (patch) | |
tree | c3c3b50de25ba7aafe6c58a426f0ba6212d63b71 /ui/app/actions.js | |
parent | 6a7fd3c774f50954050d651f7e6b8ff325ce2940 (diff) | |
parent | 06689765146c3ca88fc206d93387b05e1db3b81c (diff) | |
download | tangerine-wallet-browser-e4eb69dcc290a7e7eb27cab7ec57a8097345d81e.tar tangerine-wallet-browser-e4eb69dcc290a7e7eb27cab7ec57a8097345d81e.tar.gz tangerine-wallet-browser-e4eb69dcc290a7e7eb27cab7ec57a8097345d81e.tar.bz2 tangerine-wallet-browser-e4eb69dcc290a7e7eb27cab7ec57a8097345d81e.tar.lz tangerine-wallet-browser-e4eb69dcc290a7e7eb27cab7ec57a8097345d81e.tar.xz tangerine-wallet-browser-e4eb69dcc290a7e7eb27cab7ec57a8097345d81e.tar.zst tangerine-wallet-browser-e4eb69dcc290a7e7eb27cab7ec57a8097345d81e.zip |
Merge pull request #3982 from MetaMask/i3981-contract-rates
Fetch token prices based on contract address
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r-- | ui/app/actions.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index 780edcaba..f5cdd32bc 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -221,8 +221,6 @@ var actions = { coinBaseSubview: coinBaseSubview, SHAPESHIFT_SUBVIEW: 'SHAPESHIFT_SUBVIEW', shapeShiftSubview: shapeShiftSubview, - UPDATE_TOKEN_EXCHANGE_RATE: 'UPDATE_TOKEN_EXCHANGE_RATE', - updateTokenExchangeRate, PAIR_UPDATE: 'PAIR_UPDATE', pairUpdate: pairUpdate, coinShiftRquest: coinShiftRquest, @@ -1752,28 +1750,6 @@ function shapeShiftRequest (query, options, cb) { } } -function updateTokenExchangeRate (token = '') { - const pair = `${token.toLowerCase()}_eth` - - return dispatch => { - if (!token) { - return - } - - shapeShiftRequest('marketinfo', { pair }, marketinfo => { - if (!marketinfo.error) { - dispatch({ - type: actions.UPDATE_TOKEN_EXCHANGE_RATE, - payload: { - pair, - marketinfo, - }, - }) - } - }) - } -} - function setFeatureFlag (feature, activated, notificationType) { return (dispatch) => { dispatch(actions.showLoadingIndication()) |