limit number of currencies to 65

more than this amount is limited by cc api and will error
This commit is contained in:
Barry Gitarts 2019-12-12 08:11:38 -05:00 committed by Barry G
parent 34aead1e07
commit 7793b0ab1a
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ const getCompoundRates = async prices => {
return values
}
export const getPrices = async (currencies = ['ETH', 'SNT', 'DAI']) => {
const prices = await cc.priceMulti(currencies, ['USD'])
const prices = await cc.priceMulti(currencies.slice(0, 65), ['USD'])
const compound = await getCompoundRates(prices)
return { ...prices, ...compound, WETH: {...prices['ETH'] } }
}