aave-protocol-v2/types/IReserveInterestRateStrategyFactory.ts
2020-07-13 11:54:08 +03:00

82 lines
1.7 KiB
TypeScript

/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import {IReserveInterestRateStrategy} from './IReserveInterestRateStrategy';
export class IReserveInterestRateStrategyFactory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IReserveInterestRateStrategy {
return new Contract(address, _abi, signerOrProvider) as IReserveInterestRateStrategy;
}
}
const _abi = [
{
inputs: [
{
internalType: 'address',
name: '_reserve',
type: 'address',
},
{
internalType: 'uint256',
name: '_utilizationRate',
type: 'uint256',
},
{
internalType: 'uint256',
name: '_totalBorrowsStable',
type: 'uint256',
},
{
internalType: 'uint256',
name: '_totalBorrowsVariable',
type: 'uint256',
},
{
internalType: 'uint256',
name: '_averageStableBorrowRate',
type: 'uint256',
},
],
name: 'calculateInterestRates',
outputs: [
{
internalType: 'uint256',
name: 'liquidityRate',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'stableBorrowRate',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'variableBorrowRate',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'getBaseVariableBorrowRate',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
];