2020-06-08 12:03:40 +00:00
|
|
|
import BigNumber from "bignumber.js";
|
|
|
|
|
|
|
|
export interface UserReserveData {
|
|
|
|
principalATokenBalance: BigNumber
|
|
|
|
currentATokenBalance: BigNumber
|
|
|
|
currentATokenUserIndex: BigNumber
|
|
|
|
interestRedirectionAddress: string
|
|
|
|
redirectionAddressRedirectedBalance: BigNumber
|
|
|
|
redirectedBalance: BigNumber
|
2020-07-07 15:14:44 +00:00
|
|
|
currentStableDebt: BigNumber
|
|
|
|
currentVariableDebt: BigNumber
|
|
|
|
principalStableDebt: BigNumber
|
|
|
|
principalVariableDebt: BigNumber
|
2020-06-08 12:03:40 +00:00
|
|
|
variableBorrowIndex: BigNumber
|
2020-06-30 12:09:28 +00:00
|
|
|
liquidityRate: BigNumber
|
|
|
|
stableBorrowRate: BigNumber
|
2020-07-03 21:20:02 +00:00
|
|
|
stableRateLastUpdated: BigNumber
|
2020-06-08 12:03:40 +00:00
|
|
|
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
|
|
|
|
}
|