aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-10-30 08:28:02 +0800
committerkumavis <aaron@kumavis.me>2018-10-30 08:28:02 +0800
commit7ae5a23b6c0e9839f63bba52ab5bf7da00bef173 (patch)
treebcf78de2e303252ab61c2f2cc372bd9d04a844f3 /app
parentccbc2332829569b6bb416ced624ee3123c54b939 (diff)
parentad009a4606249649fd54420972fb6a5dd5382fc2 (diff)
downloadtangerine-wallet-browser-7ae5a23b6c0e9839f63bba52ab5bf7da00bef173.tar
tangerine-wallet-browser-7ae5a23b6c0e9839f63bba52ab5bf7da00bef173.tar.gz
tangerine-wallet-browser-7ae5a23b6c0e9839f63bba52ab5bf7da00bef173.tar.bz2
tangerine-wallet-browser-7ae5a23b6c0e9839f63bba52ab5bf7da00bef173.tar.lz
tangerine-wallet-browser-7ae5a23b6c0e9839f63bba52ab5bf7da00bef173.tar.xz
tangerine-wallet-browser-7ae5a23b6c0e9839f63bba52ab5bf7da00bef173.tar.zst
tangerine-wallet-browser-7ae5a23b6c0e9839f63bba52ab5bf7da00bef173.zip
Merge branch 'sentry-enhancements2' of github.com:MetaMask/metamask-extension into sentry-enhancements2
Diffstat (limited to 'app')
-rw-r--r--app/scripts/controllers/currency.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/scripts/controllers/currency.js b/app/scripts/controllers/currency.js
index cc78ef8a6..fce65fd9c 100644
--- a/app/scripts/controllers/currency.js
+++ b/app/scripts/controllers/currency.js
@@ -139,7 +139,7 @@ class CurrencyController {
// ETH
apiUrl = `https://api.infura.io/v1/ticker/eth${currentCurrency.toLowerCase()}`
} else {
- // ETC
+ // ETC
apiUrl = `https://min-api.cryptocompare.com/data/price?fsym=${nativeCurrency.toUpperCase()}&tsyms=${currentCurrency.toUpperCase()}`
}
// attempt request
@@ -160,7 +160,7 @@ class CurrencyController {
log.error(new Error(`CurrencyController - Failed to parse response "${rawResponse}"`))
return
}
- // set exhcange rate
+ // set conversion rate
if (nativeCurrency === 'ETH') {
// ETH
this.setConversionRate(Number(parsedResponse.bid))
@@ -177,6 +177,7 @@ class CurrencyController {
}
} catch (err) {
// reset current conversion rate
+ log.warn(`MetaMask - Failed to query currency conversion:`, nativeCurrency, currentCurrency, err)
this.setConversionRate(0)
this.setConversionDate('N/A')
// throw error