"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const hardhat_1 = require("hardhat");
const deploymentConfig_1 = require("../helpers/deploymentConfig");
const func = async function ({ getNamedAccounts, deployments, network }) {
    const { deploy } = deployments;
    const { deployer } = await getNamedAccounts();
    const { sUSDe, USDe } = deploymentConfig_1.ADDRESSES[network.name];
    const resilientOracle = await hardhat_1.ethers.getContract("ResilientOracle");
    await deploy("sUSDe_ERC4626Oracle", {
        contract: "ERC4626Oracle",
        from: deployer,
        log: true,
        deterministicDeployment: false,
        args: [sUSDe, USDe, resilientOracle.address],
    });
};
func.tags = ["deploy-ERC4626-oracle"];
func.skip = async (hre) => hre.network.name !== "ethereum" && hre.network.name !== "sepolia";
exports.default = func;
//# sourceMappingURL=14-deploy-ERC4626Oracle.js.map