Skip to content

Commit

Permalink
kyber fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slasher125 committed Oct 25, 2023
1 parent 478c9a9 commit b37a2d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/adaptors/kyberswap-elastic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,15 @@ const topLvl = async (chainString, url, timestamp) => {
};

const main = async (timestamp = null) => {
const data = await Promise.all(
const data = await Promise.allSettled(
Object.entries(CHAINS_API).map(([chain, url]) =>
topLvl(chain, url, timestamp)
)
);

return data
.filter((i) => i.status === 'fulfilled')
.map((i) => i.value)
.flat()
.filter(
(p) =>
Expand Down

0 comments on commit b37a2d8

Please sign in to comment.