diff --git a/lib/plugins/ticker/bitpay/bitpay.js b/lib/plugins/ticker/bitpay/bitpay.js index 1a48c863..48d43853 100644 --- a/lib/plugins/ticker/bitpay/bitpay.js +++ b/lib/plugins/ticker/bitpay/bitpay.js @@ -2,11 +2,8 @@ const axios = require('axios') const BN = require('../../../bn') function ticker (account, fiatCode, cryptoCode) { - if (!_.includes(cryptoCode, ['BTC', 'BCH'])) { - return Promise.reject('Unsupported crypto: ' + cryptoCode) - } - return axios.get('https://bitpay.com/api/rates/' + cryptoCode '/' + fiatCode) + return axios.get('https://bitpay.com/api/rates/' + cryptoCode + '/' + fiatCode) .then(r => { const data = r.data const price = BN(data.rate)