diff --git a/liquidity/lib/withERC7412/withERC7412.ts b/liquidity/lib/withERC7412/withERC7412.ts index 86ff8054..e4096630 100644 --- a/liquidity/lib/withERC7412/withERC7412.ts +++ b/liquidity/lib/withERC7412/withERC7412.ts @@ -359,6 +359,9 @@ export async function erc7412Call( delete newCall._calls; const res = await provider.call(newCall); + if (res === '0x') { + throw new Error(`[${label}] Call returned 0x`); + } if (newCall.to?.toLowerCase() === Multicall3Contract.address.toLowerCase()) { // If this was a multicall, decode and remove price updates.