Skip to content

Commit

Permalink
If any swap pool requests fail still return the successful responses (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Dec 3, 2024
1 parent 732a2cd commit 97f06c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/openchat-agent/src/services/dexes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export class DexesAgent {
}),
);
}
return Promise.all(promises).then((r) => r.flat());
return Promise.allSettled(promises).then((result) =>
result.flatMap((r) => (r.status === "fulfilled" ? r.value : [])),
);
}

private quoteSingle(
Expand Down

0 comments on commit 97f06c0

Please sign in to comment.