Skip to content

Commit

Permalink
use batch from manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
ngmachado committed Jan 30, 2024
1 parent 945abd5 commit 60fcacb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
23 changes: 17 additions & 6 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,51 @@
},
"10": {
"name": "Optimism",
"network_type": "evm-l2"
"network_type": "evm-l2",
"batch_contract" : "0x84956C84c33c38AcE22C9324F1f92028AF2215ce"
},
"56": {
"name": "Binance Smart Chain",
"network_type": "evm"
"network_type": "evm",
"batch_contract": "0x27636F8E129cdd4ccA0F30E2b4C116DDaC773bE5"
},
"100": {
"name": "Gnosis Chain",
"network_type": "evm"
"network_type": "evm",
"batch_contract": "0x96C3C2d23d143301cF363a02cB7fe3596d2834d7"
},
"137": {
"name": "Polygon",
"network_type": "evm"
"network_type": "evm",
"batch_contract": "0xA7afDc46999076C295cfC6812dd73d103cF64e19"
},
"420": {
"name": "Optimism Goerli Testnet",
"network_type": "evm-l2"
},
"8453": {
"name": "Base Mainnet",
"network_type": "evm-l2",
"batch_contract" : "0x6b008BAc0e5846cB5d9Ca02ca0e801fCbF88B6f9"
},
"42161": {
"name": "Arbitrum One",
"network_type": "evm-l2",
"batch_contract" : "0x9224413b9177E6c1D5721B4a4D1D00eC84B07Ce7"
},
"42220": {
"name": "Celo",
"network_type": "evm"
"network_type": "evm",
"batch_contract": "0xCb0Ff4D0cA186f0Fc0301258066Fe3fA258417a6"
},
"43113": {
"name": "Avalanche Fuji Testnet",
"network_type": "evm"
},
"43114": {
"name": "Avalanche C-Chain",
"network_type": "evm"
"network_type": "evm",
"batch_contract": "0x3b387638a5d33aE8772715642A21345f23Af824c"
},
"80001": {
"name": "Polygon Mumbai Testnet",
Expand Down
2 changes: 1 addition & 1 deletion src/config/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class Config {
this.SCHEMA_VERSION = schemaVersion;


this.BATCH_CONTRACT = contractsV1.batchLiquidator || undefined;
this.BATCH_CONTRACT = 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 60fcacb

Please sign in to comment.