/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Signer, BigNumberish, Contract, ContractFactory, Overrides, } from "ethers"; import { Provider, TransactionRequest } from "@ethersproject/providers"; import type { JumpRateModelV2 } from "../JumpRateModelV2"; export class JumpRateModelV2__factory extends ContractFactory { constructor(signer?: Signer) { super(_abi, _bytecode, signer); } deploy( baseRatePerYear: BigNumberish, multiplierPerYear: BigNumberish, jumpMultiplierPerYear: BigNumberish, kink_: BigNumberish, owner_: string, overrides?: Overrides & { from?: string | Promise } ): Promise { return super.deploy( baseRatePerYear, multiplierPerYear, jumpMultiplierPerYear, kink_, owner_, overrides || {} ) as Promise; } getDeployTransaction( baseRatePerYear: BigNumberish, multiplierPerYear: BigNumberish, jumpMultiplierPerYear: BigNumberish, kink_: BigNumberish, owner_: string, overrides?: Overrides & { from?: string | Promise } ): TransactionRequest { return super.getDeployTransaction( baseRatePerYear, multiplierPerYear, jumpMultiplierPerYear, kink_, owner_, overrides || {} ); } attach(address: string): JumpRateModelV2 { return super.attach(address) as JumpRateModelV2; } connect(signer: Signer): JumpRateModelV2__factory { return super.connect(signer) as JumpRateModelV2__factory; } static connect( address: string, signerOrProvider: Signer | Provider ): JumpRateModelV2 { return new Contract(address, _abi, signerOrProvider) as JumpRateModelV2; } } const _abi = [ { inputs: [ { internalType: "uint256", name: "baseRatePerYear", type: "uint256", }, { internalType: "uint256", name: "multiplierPerYear", type: "uint256", }, { internalType: "uint256", name: "jumpMultiplierPerYear", type: "uint256", }, { internalType: "uint256", name: "kink_", type: "uint256", }, { internalType: "address", name: "owner_", type: "address", }, ], stateMutability: "nonpayable", type: "constructor", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "baseRatePerBlock", type: "uint256", }, { indexed: false, internalType: "uint256", name: "multiplierPerBlock", type: "uint256", }, { indexed: false, internalType: "uint256", name: "jumpMultiplierPerBlock", type: "uint256", }, { indexed: false, internalType: "uint256", name: "kink", type: "uint256", }, ], name: "NewInterestParams", type: "event", }, { inputs: [], name: "baseRatePerBlock", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "blocksPerYear", 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", }, ], 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: [], name: "jumpMultiplierPerBlock", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "kink", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "multiplierPerBlock", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "owner", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "baseRatePerYear", type: "uint256", }, { internalType: "uint256", name: "multiplierPerYear", type: "uint256", }, { internalType: "uint256", name: "jumpMultiplierPerYear", type: "uint256", }, { internalType: "uint256", name: "kink_", type: "uint256", }, ], name: "updateJumpRateModel", outputs: [], stateMutability: "nonpayable", 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 = "0x608060405234801561001057600080fd5b5060405161072a38038061072a83398101604081905261002f91610112565b600080546001600160a01b0319166001600160a01b038316179055848484848461005b8585858561006a565b505050505050505050506101bc565b610077622014808561016d565b600255610087816220148061018f565b610099670de0b6b3a76400008561018f565b6100a3919061016d565b6001556100b3622014808361016d565b60038190556004829055600254600154604080519283526020830191909152810191909152606081018290527f6960ab234c7ef4b0c9197100f5393cfcde7c453ac910a27bd2000aa1dd4c068d9060800160405180910390a150505050565b600080600080600060a0868803121561012a57600080fd5b855160208701516040880151606089015160808a0151939850919650945092506001600160a01b038116811461015f57600080fd5b809150509295509295909350565b60008261018a57634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156101b757634e487b7160e01b600052601160045260246000fd5b500290565b61055f806101cb6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80638da5cb5b116100715780638da5cb5b1461011d578063a385fb9614610148578063b816881614610152578063b9f9850a14610165578063f14039de1461016e578063fd2da3391461017757600080fd5b806315f24053146100ae5780632037f3e7146100d45780632191f92a146100e95780636e71e2d8146101015780638726bb8914610114575b600080fd5b6100c16100bc366004610445565b610180565b6040519081526020015b60405180910390f35b6100e76100e2366004610471565b610197565b005b6100f1600181565b60405190151581526020016100cb565b6100c161010f366004610445565b610216565b6100c160015481565b600054610130906001600160a01b031681565b6040516001600160a01b0390911681526020016100cb565b6100c16220148081565b6100c1610160366004610471565b610256565b6100c160035481565b6100c160025481565b6100c160045481565b600061018d8484846102d2565b90505b9392505050565b6000546001600160a01b031633146102045760405162461bcd60e51b815260206004820152602660248201527f6f6e6c7920746865206f776e6572206d61792063616c6c20746869732066756e60448201526531ba34b7b71760d11b606482015260840160405180910390fd5b6102108484848461039d565b50505050565b60008261022557506000610190565b8161023084866104b9565b61023a91906104d1565b61024c670de0b6b3a7640000856104e8565b61018d9190610507565b60008061026b83670de0b6b3a76400006104d1565b9050600061027a8787876102d2565b90506000670de0b6b3a764000061029184846104e8565b61029b9190610507565b9050670de0b6b3a7640000816102b28a8a8a610216565b6102bc91906104e8565b6102c69190610507565b98975050505050505050565b6000806102e0858585610216565b9050600454811161032157600254670de0b6b3a76400006001548361030591906104e8565b61030f9190610507565b61031991906104b9565b915050610190565b6000600254670de0b6b3a764000060015460045461033f91906104e8565b6103499190610507565b61035391906104b9565b905060006004548361036591906104d1565b905081670de0b6b3a76400006003548361037f91906104e8565b6103899190610507565b61039391906104b9565b9350505050610190565b6103aa6220148085610507565b6002556103ba81622014806104e8565b6103cc670de0b6b3a7640000856104e8565b6103d69190610507565b6001556103e66220148083610507565b60038190556004829055600254600154604080519283526020830191909152810191909152606081018290527f6960ab234c7ef4b0c9197100f5393cfcde7c453ac910a27bd2000aa1dd4c068d9060800160405180910390a150505050565b60008060006060848603121561045a57600080fd5b505081359360208301359350604090920135919050565b6000806000806080858703121561048757600080fd5b5050823594602084013594506040840135936060013592509050565b634e487b7160e01b600052601160045260246000fd5b600082198211156104cc576104cc6104a3565b500190565b6000828210156104e3576104e36104a3565b500390565b6000816000190483118215151615610502576105026104a3565b500290565b60008261052457634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212206caf9c492a986ac79fa59b84bc905009414e863e879513b748d1d5055eeed9f464736f6c634300080a0033";