diff --git a/deploy/1-deploy.ts b/deploy/1-deploy.ts index b0d04126..4d2e5e8a 100644 --- a/deploy/1-deploy.ts +++ b/deploy/1-deploy.ts @@ -1,4 +1,4 @@ -import hre, { ethers } from "hardhat"; +import { ethers } from "hardhat"; import { DeployFunction } from "hardhat-deploy/types"; import { HardhatRuntimeEnvironment } from "hardhat/types"; @@ -24,7 +24,7 @@ const func: DeployFunction = async ({ deterministicDeployment: false, args: [comptrollerAddress, WBNBAddress, vBNBAddress], proxy: { - owner: timelockAddress, + owner: live ? timelockAddress : deployer, proxyContract: "OpenZeppelinTransparentProxy", execute: { methodName: "initialize", @@ -32,15 +32,6 @@ const func: DeployFunction = async ({ }, }, }); - - const psr = await hre.ethers.getContract("ProtocolShareReserve"); - const psrOwner = await psr.owner(); - - if (psrOwner === deployer) { - const tx = await psr.transferOwnership(timelockAddress); - await tx.wait(); - console.log("Transferred ownership of PSR to Timelock"); - } }; func.tags = ["deploy"];