Skip to content

Commit

Permalink
fix: increase multicall batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco committed Aug 25, 2023
1 parent 5f46415 commit e78de8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion balancer-js/src/lib/utils/multiCaller3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class Multicaller3 {

async execute(
from: Record<string, unknown> = {},
batchSize = 100 // Define the number of function calls in each batch
batchSize = 1024 // Define the number of function calls in each batch
): Promise<Record<string, unknown>> {
const obj = from;
const results = await this.executeMulticall(batchSize);
Expand Down
2 changes: 1 addition & 1 deletion balancer-js/src/modules/sor/pool-data/onChainData3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export const fetchOnChainPoolData = async (
poolTypeCalls(poolType)(id, address, multicaller);
});

const results = (await multicaller.execute({}, 100)) as {
const results = (await multicaller.execute({}, 1024)) as {
[id: string]: OnchainData;
};

Expand Down

0 comments on commit e78de8d

Please sign in to comment.