Skip to content

Commit 427f390

Browse files
0xpeluche0xpeluche
andauthored
fix adapter: Toros outdated (9d) (DefiLlama#11447)
Co-authored-by: 0xpeluche <[email protected]>
1 parent 34203a9 commit 427f390

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

projects/toros/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ async function tvl(api) {
1111
params: [torosMultisigManager],
1212
});
1313

14-
const poolSummaries = await api.multiCall({
14+
const poolSummariesRes = await api.multiCall({
1515
abi: TOROS_POOL_ABI,
1616
calls: pools,
17+
permitFailure: true
1718
});
1819

20+
const poolSummaries = poolSummariesRes.filter(i => i && i.totalFundValue !== null && i.totalFundValue !== undefined);
21+
1922
const totalValue = poolSummaries.reduce(
2023
(acc, i) => acc + +i.totalFundValue,
2124
0

0 commit comments

Comments
 (0)