Skip to content

Commit

Permalink
fix Sablier v1 update (DefiLlama#10884)
Browse files Browse the repository at this point in the history
* fix Sablier v1 update

* use permitFailure instead of filter null Address

---------

Co-authored-by: 0xpeluche <[email protected]>
  • Loading branch information
0xpeluche and 0xpeluche committed Jul 4, 2024
1 parent f844351 commit 2262407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/sablier/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const blacklistedTokens = [
async function getTokens(api, owners, isVesting) {
let tokens = (await Promise.all(owners.map(i => covalentGetTokens(i, api, { onlyWhitelisted: false, })))).flat().filter(i => !blacklistedTokens.includes(i))
tokens = getUniqueAddresses(tokens)
const symbols = await api.multiCall({ abi: 'erc20:symbol', calls: tokens })
const symbols = await api.multiCall({ abi: 'erc20:symbol', calls: tokens, permitFailure: true })
return tokens.filter((v, i) => isWhitelistedToken(symbols[i], v, isVesting))
}

Expand Down

0 comments on commit 2262407

Please sign in to comment.