UNPKG

@augmentedfinance/protocol-v1

Version:

Augmented Protocol smart contracts

135 lines 6.66 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.LendingRateOracleFactory = void 0; const contracts_1 = require("@ethersproject/contracts"); class LendingRateOracleFactory extends contracts_1.ContractFactory { constructor(signer) { super(_abi, _bytecode, signer); } deploy(remoteAcl, overrides) { return super.deploy(remoteAcl, overrides || {}); } getDeployTransaction(remoteAcl, overrides) { return super.getDeployTransaction(remoteAcl, overrides || {}); } attach(address) { return super.attach(address); } connect(signer) { return super.connect(signer); } static connect(address, signerOrProvider) { return new contracts_1.Contract(address, _abi, signerOrProvider); } } exports.LendingRateOracleFactory = LendingRateOracleFactory; const _abi = [ { inputs: [ { internalType: "contract IMarketAccessController", name: "remoteAcl", type: "address", }, ], stateMutability: "nonpayable", type: "constructor", }, { inputs: [ { internalType: "address", name: "_asset", type: "address", }, ], name: "getMarketBorrowRate", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_asset", type: "address", }, ], name: "getMarketLiquidityRate", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_asset", type: "address", }, { internalType: "uint256", name: "_rate", type: "uint256", }, ], name: "setMarketBorrowRate", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address[]", name: "assets", type: "address[]", }, { internalType: "uint256[]", name: "rates", type: "uint256[]", }, ], name: "setMarketBorrowRates", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_asset", type: "address", }, { internalType: "uint256", name: "_rate", type: "uint256", }, ], name: "setMarketLiquidityRate", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; const _bytecode = "0x608060405234801561001057600080fd5b5060405161062c38038061062c83398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610082565b600060208284031215610065578081fd5b81516001600160a01b038116811461007b578182fd5b9392505050565b61059b806100916000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806372eb293d1461005c5780637a8c288a146100715780639f86a0ee14610084578063bb85c0bb14610097578063fbe5ba1e146100d2575b600080fd5b61006f61006a366004610441565b6100fb565b005b61006f61007f36600461046a565b610156565b61006f610092366004610441565b610287565b6100c06100a5366004610420565b6001600160a01b031660009081526001602052604090205490565b60405190815260200160405180910390f35b6100c06100e0366004610420565b6001600160a01b031660009081526002602052604090205490565b60408051808201909152600a815269149154d5149250d5115160b21b6020820152600054608091610139916001600160a01b031690339084906102e2565b506001600160a01b03909116600090815260016020526040902055565b60408051808201909152600a815269149154d5149250d5115160b21b6020820152600054608091610194916001600160a01b031690339084906102e2565b8382146101e85760405162461bcd60e51b815260206004820152601760248201527f6172726179206c656e6774687320646966666572656e7400000000000000000060448201526064015b60405180910390fd5b60005b8481101561027f5783838281811061021357634e487b7160e01b600052603260045260246000fd5b905060200201356001600088888581811061023e57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906102539190610420565b6001600160a01b03168152602081019190915260400160002055806102778161053e565b9150506101eb565b505050505050565b60408051808201909152600a815269149154d5149250d5115160b21b60208201526000546080916102c5916001600160a01b031690339084906102e2565b506001600160a01b03909116600090815260026020526040902055565b6102ed848484610313565b819061030c5760405162461bcd60e51b81526004016101df91906104eb565b5050505050565b60008061032185858561032e565b9092161515949350505050565b60405163cc8b29c160e01b81526001600160a01b038381166004830152602482018390526000919085169063cc8b29c19060440160206040518083038186803b15801561037a57600080fd5b505afa15801561038e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b291906104d3565b949350505050565b80356001600160a01b03811681146103d157600080fd5b919050565b60008083601f8401126103e7578182fd5b50813567ffffffffffffffff8111156103fe578182fd5b6020830191508360208260051b850101111561041957600080fd5b9250929050565b600060208284031215610431578081fd5b61043a826103ba565b9392505050565b60008060408385031215610453578081fd5b61045c836103ba565b946020939093013593505050565b6000806000806040858703121561047f578182fd5b843567ffffffffffffffff80821115610496578384fd5b6104a2888389016103d6565b909650945060208701359150808211156104ba578384fd5b506104c7878288016103d6565b95989497509550505050565b6000602082840312156104e4578081fd5b5051919050565b6000602080835283518082850152825b81811015610517578581018301518582016040015282016104fb565b818111156105285783604083870101525b50601f01601f1916929092016040019392505050565b600060001982141561055e57634e487b7160e01b81526011600452602481fd5b506001019056fea26469706673582212205be6d46ac42859ea967041b95a9dcad5095b2b096107cafd10a3c40508003fc764736f6c63430008040033"; //# sourceMappingURL=LendingRateOracleFactory.js.map