Skip to content

Commit

Permalink
can disable the batch contract with the flag DISABLE_BATCH_CONTRACT
Browse files Browse the repository at this point in the history
  • Loading branch information
d10r committed Feb 23, 2024
1 parent 8b4aeba commit ba9ac30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/config/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ba9ac30

Please sign in to comment.