Skip to content

Commit d682b81

Browse files
committed
fix: disable multicall chunking everywhere
1 parent 34ce353 commit d682b81

File tree

16 files changed

+20
-0
lines changed

16 files changed

+20
-0
lines changed

src/dev/AccountOpener.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,7 @@ export class AccountOpener extends SDKConstruct {
898898
}) as const,
899899
),
900900
allowFailure: false,
901+
batchSize: 0,
901902
});
902903
const tokensArr = tokens.asArray();
903904
for (let i = 0; i < tokensArr.length; i++) {

src/dev/ltUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ async function logLTs(
222222
args: [],
223223
} as const,
224224
]),
225+
batchSize: 0,
225226
});
226227
for (let i = 0; i < tokens.length; i++) {
227228
const lt = resp[i * 2]?.result ?? "error";

src/dev/migrateFaucet.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export async function unsafeMigrateFaucet(
4040
},
4141
],
4242
allowFailure: false,
43+
batchSize: 0,
4344
});
4445
}
4546

src/permissionless/bindings/compressors/token-compressor.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export class TokenCompressorContract extends BaseContract<typeof abi> {
4747

4848
const results = await this.client.multicall({
4949
contracts: contracts,
50+
batchSize: 0,
5051
});
5152

5253
const multivaultToToken = new Map<Address, Address>();
@@ -69,6 +70,7 @@ export class TokenCompressorContract extends BaseContract<typeof abi> {
6970
args: [],
7071
})),
7172
allowFailure: true,
73+
batchSize: 0,
7274
});
7375

7476
const tokenToSymbol = new Map<Address, string>();
@@ -100,6 +102,7 @@ export class TokenCompressorContract extends BaseContract<typeof abi> {
100102
functionName: "getTokenInfo",
101103
args: [token],
102104
})),
105+
batchSize: 0,
103106
});
104107

105108
const tokenInfos = results.map((result, index) => {

src/permissionless/bindings/market-configurator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ export class MarketConfiguratorContract extends BaseContract<typeof abi> {
585585
args: [stringToHex("EMERGENCY_LIQUIDATOR", { size: 32 })],
586586
},
587587
],
588+
batchSize: 0,
588589
});
589590

590591
return {
@@ -617,6 +618,7 @@ export class MarketConfiguratorContract extends BaseContract<typeof abi> {
617618
abi: parseAbi(["function contractType() view returns (bytes32)"]),
618619
functionName: "contractType",
619620
})),
621+
batchSize: 0,
620622
});
621623

622624
const pause = result

src/permissionless/bindings/price-feed-store.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ export class PriceFeedStoreContract extends BaseContract<typeof abi> {
435435
// Execute multicall to get all price feed info at once
436436
const results = await this.client.multicall({
437437
contracts: multicallCalls,
438+
batchSize: 0,
438439
});
439440

440441
// Transform results into PriceFeed objects

src/plugins/accounts-counter/AccountsCounterPlugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export class AccountsCounterPlugin
8989
] as const,
9090
),
9191
allowFailure: false,
92+
batchSize: 0,
9293
});
9394
this.#accounts = new AddressMap();
9495
for (let i = 0; i < cms.length; i++) {

src/plugins/bots/BotsPlugin.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export class BotsPlugin
7575
),
7676
allowFailure: true,
7777
blockNumber: this.sdk.currentBlock,
78+
batchSize: 0,
7879
});
7980

8081
const expectedBots = new AddressMap<BotParameters>();
@@ -105,6 +106,7 @@ export class BotsPlugin
105106
),
106107
allowFailure: true,
107108
blockNumber: this.sdk.currentBlock,
109+
batchSize: 0,
108110
});
109111

110112
for (let i = 0; i < botAddrs.length; i++) {

src/plugins/delayed-withdrawal/DelayedWithdrawalPlugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export class DelayedWithdrawalPlugin
5353
)
5454
: [],
5555
allowFailure: true,
56+
batchSize: 0,
5657
});
5758

5859
this.#withdrawableAssets = new AddressMap(undefined, MAP_LABEL);

src/plugins/pools-history/Pools7DAgoPlugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export class Pools7DAgoPlugin
5353
}) as const,
5454
),
5555
blockNumber: BigIntMath.max(0n, targetBlock),
56+
batchSize: 0,
5657
});
5758

5859
this.#pools7DAgo = new AddressMap<Pool7DAgoState>(undefined, MAP_LABEL);

0 commit comments

Comments
 (0)