mirror of
https://github.com/luxfi/uma.git
synced 2026-10-30 15:14:44 +00:00
17 lines
494 B
JavaScript
17 lines
494 B
JavaScript
const func = async function (hre) {
|
|
const { deployments, getNamedAccounts, network } = hre;
|
|
const { deploy } = deployments;
|
|
|
|
const { deployer } = await getNamedAccounts();
|
|
const { live } = network;
|
|
|
|
if (live === undefined) throw new Error("Network has no live parameter");
|
|
|
|
// If live === false, don't deploy a timer.
|
|
if (live === false) {
|
|
await deploy("Timer", { from: deployer, log: true, skipIfAlreadyDeployed: true });
|
|
}
|
|
};
|
|
module.exports = func;
|
|
func.tags = ["Timer"];
|