diff --git a/lib/forex.js b/lib/forex.js index 0cdcd300..011eb2e4 100644 --- a/lib/forex.js +++ b/lib/forex.js @@ -27,7 +27,7 @@ function getCoinCapFxRate (fiatCode, fiatCodeProperty, rateProperty) { return axios.get('https://api.coincap.io/v2/rates') .then(response => { const fxRates = response.data.data - const fxRate = findCurrencyRates(fxRates, fiatCode, fiatCodeProperty, rateProperty) + const fxRate = new BN(1).div(findCurrencyRates(fxRates, fiatCode, fiatCodeProperty, rateProperty)) return { fxRate }