From 60a19af1a8c5d52341c754b8cc870e9631ec2fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveira?= Date: Wed, 27 Jan 2021 12:52:27 +0000 Subject: [PATCH] Fixed a function missing arguments --- lib/plugins/ticker/ccxt.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/plugins/ticker/ccxt.js b/lib/plugins/ticker/ccxt.js index 300d6e4d..0eda5fff 100644 --- a/lib/plugins/ticker/ccxt.js +++ b/lib/plugins/ticker/ccxt.js @@ -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 {