aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-04-25 05:12:57 +0800
committerDan Finlay <dan@danfinlay.com>2018-04-25 05:12:57 +0800
commit7ec775d614b3717a424e6a5576aef90a74e4344d (patch)
treeff40e8c9fa3a43d7c6ba214cbd48fe28147511cd
parenta833f02f33380ff636c4f01937bb7140ea544aa9 (diff)
downloadtangerine-wallet-browser-7ec775d614b3717a424e6a5576aef90a74e4344d.tar
tangerine-wallet-browser-7ec775d614b3717a424e6a5576aef90a74e4344d.tar.gz
tangerine-wallet-browser-7ec775d614b3717a424e6a5576aef90a74e4344d.tar.bz2
tangerine-wallet-browser-7ec775d614b3717a424e6a5576aef90a74e4344d.tar.lz
tangerine-wallet-browser-7ec775d614b3717a424e6a5576aef90a74e4344d.tar.xz
tangerine-wallet-browser-7ec775d614b3717a424e6a5576aef90a74e4344d.tar.zst
tangerine-wallet-browser-7ec775d614b3717a424e6a5576aef90a74e4344d.zip
Use latest balanc3 api for prices
-rw-r--r--app/scripts/controllers/token-rates.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/controllers/token-rates.js b/app/scripts/controllers/token-rates.js
index 21384f262..abeec4cc0 100644
--- a/app/scripts/controllers/token-rates.js
+++ b/app/scripts/controllers/token-rates.js
@@ -39,7 +39,7 @@ class TokenRatesController {
*/
async fetchExchangeRate (address) {
try {
- const response = await fetch(`https://metamask.dev.balanc3.net/prices?from=${address}&to=ETH&autoConversion=false&summaryOnly=true`)
+ const response = await fetch(`https://metamask.balanc3.net/prices?from=${address}&to=ETH&autoConversion=false&summaryOnly=true`)
const json = await response.json()
return json && json.length ? json[0].averagePrice : 0
} catch (error) { }