diff --git a/src/deploy/002_settlement.ts b/src/deploy/002_settlement.ts index 33d1c326..d5a8b4fb 100644 --- a/src/deploy/002_settlement.ts +++ b/src/deploy/002_settlement.ts @@ -7,8 +7,6 @@ import Vault from "../../balancer/Vault.json"; import BALANCER_NETWORKS from "../../balancer/networks.json"; import { CONTRACT_NAMES, SALT } from "../ts/deploy"; -const DEFAULT_VAULT_ADDRESS = "0xBA12222222228d8Ba445958a75a0704d566BF2C8"; - const deploySettlement: DeployFunction = async function ({ deployments, ethers, @@ -48,13 +46,12 @@ const deploySettlement: DeployFunction = async function ({ >; const vaultDeployment = vaultNetworks[chainId]; if (vaultDeployment === undefined) { - console.warn( - `Vault not deployed on chain ${chainId}, using default address.`, + throw new Error( + `Vault not validated on chain ${chainId}. Make sure the Balancer deployment is safe to use first, then add it to the networks.json file`, ); - vaultAddress = DEFAULT_VAULT_ADDRESS; - } else { - vaultAddress = vaultDeployment.address; } + + vaultAddress = vaultDeployment.address; } await deploy(settlement, {