limit number of currencies to 65
more than this amount is limited by cc api and will error
This commit is contained in:
parent
34aead1e07
commit
7793b0ab1a
|
@ -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'] } }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue