Skip to content

Commit e8819c5

Browse files
authored
Merge pull request #522 from balancer/chore/logMulticallStateError
chore: log multicall v2 pool state error
2 parents 7759f83 + 20aeefc commit e8819c5

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.changeset/chilled-hornets-explode.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@balancer/sdk": patch
3+
---
4+
5+
chore: debug v2 pool state multicall errors

src/entities/utils/getPoolStateWithBalancesV2.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ export const getPoolStateWithBalancesV2 = async (
3434
});
3535

3636
if (outputs.some((output) => output.status === 'failure')) {
37+
console.log(
38+
'Multicall error/s getting pool state with balances for v2 pool',
39+
{
40+
errors: outputs
41+
.filter((o) => o.status === 'failure')
42+
.map((o) => o.error),
43+
chainId,
44+
poolId: poolState.id,
45+
},
46+
);
3747
throw new Error(
3848
'Error: Unable to get pool state with balances for v2 pool.',
3949
);

0 commit comments

Comments
 (0)