fix: fx rate value from coincap
This commit is contained in:
parent
255c5e140c
commit
ed0814ebc1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue