aave-protocol-v2/test/helpers/utils/interfaces/index.ts
2020-06-30 14:09:28 +02:00

41 lines
1.3 KiB
TypeScript

import BigNumber from "bignumber.js";
export interface UserReserveData {
principalATokenBalance: BigNumber
currentATokenBalance: BigNumber
currentATokenUserIndex: BigNumber
interestRedirectionAddress: string
redirectionAddressRedirectedBalance: BigNumber
redirectedBalance: BigNumber
currentStableBorrowBalance: BigNumber
currentVariableBorrowBalance: BigNumber
principalStableBorrowBalance: BigNumber
principalVariableBorrowBalance: BigNumber
variableBorrowIndex: BigNumber
liquidityRate: BigNumber
stableBorrowRate: BigNumber
usageAsCollateralEnabled: Boolean
walletBalance: BigNumber
[key: string]: BigNumber | string | Boolean
}
export interface ReserveData {
address: string
symbol: string
decimals: BigNumber
totalLiquidity: BigNumber
availableLiquidity: BigNumber
totalBorrowsStable: BigNumber
totalBorrowsVariable: BigNumber
averageStableBorrowRate: BigNumber
variableBorrowRate: BigNumber
stableBorrowRate: BigNumber
utilizationRate: BigNumber
liquidityIndex: BigNumber
variableBorrowIndex: BigNumber
aTokenAddress: string
marketStableRate: BigNumber
lastUpdateTimestamp: BigNumber
liquidityRate: BigNumber
[key: string]: BigNumber | string
}