"use strict";
/* Autogenerated file. Do not edit manually. */
Object.defineProperty(exports, "__esModule", { value: true });
exports.TwoKinksInterestRateModel__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "int256",
                name: "baseRatePerYear_",
                type: "int256",
            },
            {
                internalType: "int256",
                name: "multiplierPerYear_",
                type: "int256",
            },
            {
                internalType: "int256",
                name: "kink1_",
                type: "int256",
            },
            {
                internalType: "int256",
                name: "multiplier2PerYear_",
                type: "int256",
            },
            {
                internalType: "int256",
                name: "baseRate2PerYear_",
                type: "int256",
            },
            {
                internalType: "int256",
                name: "kink2_",
                type: "int256",
            },
            {
                internalType: "int256",
                name: "jumpMultiplierPerYear_",
                type: "int256",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [],
        name: "InvalidKink",
        type: "error",
    },
    {
        inputs: [],
        name: "NegativeValueNotAllowed",
        type: "error",
    },
    {
        inputs: [],
        name: "BASE_RATE_2_PER_BLOCK",
        outputs: [
            {
                internalType: "int256",
                name: "",
                type: "int256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "BASE_RATE_PER_BLOCK",
        outputs: [
            {
                internalType: "int256",
                name: "",
                type: "int256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "BLOCKS_PER_YEAR",
        outputs: [
            {
                internalType: "int256",
                name: "",
                type: "int256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "JUMP_MULTIPLIER_PER_BLOCK",
        outputs: [
            {
                internalType: "int256",
                name: "",
                type: "int256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "KINK_1",
        outputs: [
            {
                internalType: "int256",
                name: "",
                type: "int256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "KINK_2",
        outputs: [
            {
                internalType: "int256",
                name: "",
                type: "int256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "MULTIPLIER_2_PER_BLOCK",
        outputs: [
            {
                internalType: "int256",
                name: "",
                type: "int256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "MULTIPLIER_PER_BLOCK",
        outputs: [
            {
                internalType: "int256",
                name: "",
                type: "int256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "RATE_1",
        outputs: [
            {
                internalType: "int256",
                name: "",
                type: "int256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "RATE_2",
        outputs: [
            {
                internalType: "int256",
                name: "",
                type: "int256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "cash",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "borrows",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "reserves",
                type: "uint256",
            },
        ],
        name: "getBorrowRate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "cash",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "borrows",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "reserves",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "reserveFactorMantissa",
                type: "uint256",
            },
        ],
        name: "getSupplyRate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "isInterestRateModel",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "cash",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "borrows",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "reserves",
                type: "uint256",
            },
        ],
        name: "utilizationRate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "pure",
        type: "function",
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class TwoKinksInterestRateModel__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(baseRatePerYear_, multiplierPerYear_, kink1_, multiplier2PerYear_, baseRate2PerYear_, kink2_, jumpMultiplierPerYear_, overrides) {
        return super.deploy(baseRatePerYear_, multiplierPerYear_, kink1_, multiplier2PerYear_, baseRate2PerYear_, kink2_, jumpMultiplierPerYear_, overrides || {});
    }
    getDeployTransaction(baseRatePerYear_, multiplierPerYear_, kink1_, multiplier2PerYear_, baseRate2PerYear_, kink2_, jumpMultiplierPerYear_, overrides) {
        return super.getDeployTransaction(baseRatePerYear_, multiplierPerYear_, kink1_, multiplier2PerYear_, baseRate2PerYear_, kink2_, jumpMultiplierPerYear_, overrides || {});
    }
    attach(address) {
        return super.attach(address);
    }
    connect(signer) {
        return super.connect(signer);
    }
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.TwoKinksInterestRateModel__factory = TwoKinksInterestRateModel__factory;
TwoKinksInterestRateModel__factory.bytecode = _bytecode;
TwoKinksInterestRateModel__factory.abi = _abi;
