morpho v1: ignore errors

This commit is contained in:
g1nt0ki
2025-10-22 14:04:10 +02:00
parent 889abee848
commit 380c261f39

View File

@@ -162,7 +162,7 @@ const tvl = async (api) => {
const withdrawQueueLengths = await api.multiCall({ calls: collCalls, abi: abi.metaMorphoFunctions.withdrawQueueLength, permitFailure: true })
const filterMarkets = marketInfos.filter((_, i) => withdrawQueueLengths[i] == null || withdrawQueueLengths[i] > 30 || withdrawQueueLengths[i] < 0);
const tokens = filterMarkets.flatMap(({ collateralToken, loanToken }) => [collateralToken, loanToken])
return sumTokens2({ api, owner: morphoBlue, tokens, blacklistedTokens: blackList })
return sumTokens2({ api, owner: morphoBlue, tokens, blacklistedTokens: blackList, permitFailure: true })
}
const borrowed = async (api) => {