From 12ee6f3bf82766ca174a10f4c5d8d8b4ea20a80e Mon Sep 17 00:00:00 2001 From: Didi Date: Fri, 23 Feb 2024 17:35:11 +0100 Subject: [PATCH] can disable the batch contract with the flag DISABLE_BATCH_CONTRACT (#281) --- src/config/configuration.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config/configuration.js b/src/config/configuration.js index 6889f2a..702544f 100644 --- a/src/config/configuration.js +++ b/src/config/configuration.js @@ -175,7 +175,9 @@ class Config { this.SCHEMA_VERSION = schemaVersion; - this.BATCH_CONTRACT = localManifest.networks[chainId]?.batch_contract || contractsV1.batchLiquidator || undefined; + this.BATCH_CONTRACT = process.env.DISABLE_BATCH_CONTRACT ? + undefined : + localManifest.networks[chainId]?.batch_contract || contractsV1.batchLiquidator || undefined; this.TOGA_CONTRACT = contractsV1.toga || undefined; if(this.RESOLVER === undefined) { this.RESOLVER = contractsV1.resolver || undefined;