Skip to content

Commit

Permalink
fix: batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Sep 12, 2024
1 parent 6e87a68 commit 696a953
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/groups/web3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const PROVIDER_POLLING_INTERVAL = 12_000;
// how long in ms to wait for RPC batching(multicall and provider)
export const PROVIDER_BATCH_TIME = 150;
// max batch
export const PROVIDER_MAX_BATCH = 10;
export const PROVIDER_MAX_BATCH = 20;

// account for gas estimation
// will always have >=0.001 ether, >=0.001 stETH, >=0.001 wstETH
Expand Down
2 changes: 1 addition & 1 deletion pages/api/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const rpc = rpcFactory({
'net_version',
],
allowedCallAddresses,
maxBatchCount: 10,
maxBatchCount: config.PROVIDER_MAX_BATCH,
});

export default wrapNextRequest([
Expand Down

0 comments on commit 696a953

Please sign in to comment.