Skip to content

Commit d5e26e9

Browse files
committed
fix: add redstone gateways override
1 parent 2f23593 commit d5e26e9

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/attachSDK.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default async function attachSDK(): Promise<CreditAccountsService> {
5353
chainId: config.chainId,
5454
networkType: config.network,
5555
redstoneHistoricTimestamp: optimisticTimestamp,
56+
redstoneGateways: config.redstoneGateways,
5657
logger,
5758
});
5859
if (config.optimistic) {

src/config/env.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const envConfigMapping: Record<keyof ConfigSchema, string | string[]> = {
1515
ethProviderRpcs: "JSON_RPC_PROVIDERS",
1616
hfThreshold: "HF_TRESHOLD",
1717
restakingWorkaround: "RESTAKING_WORKAROUND",
18+
redstoneGateways: "REDSTONE_GATEWAYS",
1819
minBalance: "MIN_BALANCE",
1920
oneInchApiKey: "ONE_INCH_API_KEY",
2021
optimistic: "OPTIMISTIC",

src/config/schema.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ export const ConfigSchema = z.object({
7878
* Enable optimistic liquidations
7979
*/
8080
optimistic: booleanLike.pipe(z.boolean().optional()),
81+
/**
82+
* Redstone gateways override
83+
* Set local caching proxies to avoid rate limiting in test environment
84+
*/
85+
redstoneGateways: z
86+
.string()
87+
.optional()
88+
.transform(s => s?.split(",")),
8189
/**
8290
* The serive can deploy partial liquidator contracts.
8391
* Usage: deploy them once from local machine then pass the address to production service

0 commit comments

Comments
 (0)