"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("MockSFrax", {
        contract: "MockSFrax",
        from: deployer,
        log: true,
        autoMine: true,
        skipIfAlreadyDeployed: true,
        args: ["Staked FRAX", "sFRAX", 18],
    });
    const mockSFraxContract = await hardhat_1.ethers.getContract("MockSFrax");
    if ((await mockSFraxContract.owner()) === deployer) {
        await mockSFraxContract.transferOwnership(proxyOwnerAddress);
    }
};
exports.default = func;
func.tags = ["sFraxOracle"];
func.skip = async (hre) => hre.network.name !== "sepolia";
//# sourceMappingURL=9-dependencies-sfrax-oracle.js.map