const { sleep } = require("@gelatonetwork/core"); module.exports = async (hre) => { if (hre.network.name === "mainnet") { console.log( "Deploying ConditionDebtBridgeIsAffordable to mainnet. Hit ctrl + c to abort" ); await sleep(2000); } const { deployments } = hre; const { deploy } = deployments; const { deployer } = await hre.getNamedAccounts(); // the following will only deploy "ConditionMakerVaultUnsafe" // if the contract was never deployed or if the code changed since last deployment await deploy("ConditionDebtBridgeIsAffordable", { from: deployer, gasPrice: hre.network.config.gasPrice, log: hre.network.name === "mainnet" ? true : false, }); }; module.exports.tags = ["ConditionDebtBridgeIsAffordable"];