"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const hardhat_1 = require("hardhat");
const deploymentConfig_1 = require("../helpers/deploymentConfig");
const func = async ({ getNamedAccounts, network }) => {
    const { deployer } = await getNamedAccounts();
    const proxyOwnerAddress = network.live ? deploymentConfig_1.ADDRESSES[network.name].timelock : deployer;
    const sfrxETHOracle = await hardhat_1.ethers.getContract("SFrxETHOracle");
    if ((await sfrxETHOracle.owner()) === deployer) {
        await sfrxETHOracle.transferOwnership(proxyOwnerAddress);
    }
};
exports.default = func;
func.id = "sFraxETHOracle-setup";
func.skip = async (hre) => hre.network.name !== "ethereum";
//# sourceMappingURL=11-setup-sfrxeth-oracle.js.map