Fixed a function missing arguments

This commit is contained in:
José Oliveira 2021-01-27 12:52:27 +00:00 committed by Josh Harvey
parent ea1c29ebba
commit 60a19af1a8

View file

@ -7,10 +7,9 @@ const { buildMarket, verifyFiatSupport } = require('../common/ccxt')
function ticker (fiatCode, cryptoCode, tickerName) {
const ticker = new ccxt[tickerName]({ timeout: 3000 })
if (verifyFiatSupport) {
if (verifyFiatSupport(fiatCode, tickerName)) {
return getCurrencyRates(ticker, fiatCode, cryptoCode)
}
return axios.get('https://bitpay.com/rates')
.then(response => {
try {