Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/gmx-io/gmx-interface
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Sep 13, 2024
2 parents c511460 + 1c00972 commit 9de69eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/config/ab.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import mapValues from "lodash/mapValues";
import { AB_FLAG_STORAGE_KEY } from "./localStorage";

type Flag = "testRpcCallsBatching" | "testPrebuiltMarkets";
type Flag = "testAdjustRpcBatching" | "testPrebuiltMarkets";

type AbFlag = {
enabled: boolean;
Expand All @@ -12,7 +12,7 @@ type AbStorage = {
};

const abFlagsConfig: Record<Flag, number> = {
testRpcCallsBatching: 0.5,
testAdjustRpcBatching: 0.5,
testPrebuiltMarkets: 0.5,
};

Expand Down
2 changes: 1 addition & 1 deletion src/lib/multicall/executeMulticall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function executeChainsMulticalls() {
}

async function executeChainMulticall(chainId: number, calls: MulticallFetcherConfig[number]) {
const maxCallsPerBatch = getIsFlagEnabled("testRpcCallsBatching") ? 500 : 5000;
const maxCallsPerBatch = getIsFlagEnabled("testAdjustRpcBatching") ? 250 : 500;

const callChunks = chunk(entries(calls), maxCallsPerBatch);
const batchedRequests = callChunks.map((chunk) => ({
Expand Down

0 comments on commit 9de69eb

Please sign in to comment.