"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const hardhat_1 = require("hardhat");
const deploymentConfig_1 = require("../helpers/deploymentConfig");
const func = async ({ getNamedAccounts, deployments, network }) => {
    const { deploy } = deployments;
    const { deployer } = await getNamedAccounts();
    const proxyOwnerAddress = network.live ? deploymentConfig_1.ADDRESSES[network.name].timelock : deployer;
    await deploy("MockSfrxEthFraxOracle", {
        contract: "MockSfrxEthFraxOracle",
        from: deployer,
        log: true,
        autoMine: true,
        skipIfAlreadyDeployed: true,
        args: [],
    });
    const mockSfrxEthFraxOracle = await hardhat_1.ethers.getContract("MockSfrxEthFraxOracle");
    if ((await mockSfrxEthFraxOracle.owner()) === deployer) {
        await mockSfrxEthFraxOracle.transferOwnership(proxyOwnerAddress);
    }
};
exports.default = func;
func.tags = ["sFraxETHOracle"];
func.skip = async (hre) => hre.network.name !== "sepolia";
//# sourceMappingURL=11-dependencies-sfrxeth-oracle.js.map