1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
This commit is contained in:
kumavis 2018-10-19 07:08:04 -04:00
parent b85ae55cd5
commit a57d267dcb
2 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,6 @@
const ObservableStore = require('obs-store')
const extend = require('xtend')
const PhishingDetector = require('eth-phishing-detect/src/detector')
const log = require('loglevel')
// compute phishing lists
const PHISHING_DETECTION_CONFIG = require('eth-phishing-detect/src/config.json')

View File

@ -1,6 +1,5 @@
const ObservableStore = require('obs-store')
const extend = require('xtend')
const log = require('loglevel')
// every ten minutes
const POLLING_INTERVAL = 600000
@ -118,7 +117,7 @@ class CurrencyController {
try {
rawResponse = await response.text()
parsedResponse = JSON.parse(rawResponse)
} catch () {
} catch (err) {
throw new Error(`CurrencyController - Failed to parse response "${rawResponse}"`)
}
this.setConversionRate(Number(parsedResponse.bid))