Skip to content

Commit

Permalink
Merge pull request #478 from balancer/fix-mulicall
Browse files Browse the repository at this point in the history
Updated multicall to ignore Managed pool.
  • Loading branch information
johngrantuk authored Jul 1, 2023
2 parents 76e8a31 + d2503c0 commit a79d876
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion balancer-js/src/modules/sor/pool-data/onChainData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ export async function getOnChainBalances<
const supportedPoolTypes: string[] = Object.values(PoolType);
const subgraphPools: GenericPool[] = [];
subgraphPoolsOriginal.forEach((pool) => {
if (!supportedPoolTypes.includes(pool.poolType)) {
if (
!supportedPoolTypes.includes(pool.poolType) ||
pool.poolType === 'Managed'
) {
console.warn(`Unknown pool type: ${pool.poolType} ${pool.id}`);
return;
}
Expand Down

0 comments on commit a79d876

Please sign in to comment.