Skip to content

Commit

Permalink
chore: debug v2 pool state multicall errors
Browse files Browse the repository at this point in the history
  • Loading branch information
agualis committed Dec 7, 2024
1 parent 7759f83 commit 304f854
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/entities/utils/getPoolStateWithBalancesV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ export const getPoolStateWithBalancesV2 = async (
});

if (outputs.some((output) => output.status === 'failure')) {
console.log(
'Multicall error/s getting pool state with balances for v2 pool',
{
errors: outputs
.filter((o) => o.status === 'failure')
.map((o) => o.error),
chainId,
poolId: poolState.id,
},
);
throw new Error(
'Error: Unable to get pool state with balances for v2 pool.',
);
Expand Down

0 comments on commit 304f854

Please sign in to comment.