2020-07-13 08:54:08 +00:00
|
|
|
import BigNumber from 'bignumber.js';
|
2020-06-08 12:03:40 +00:00
|
|
|
|
|
|
|
export interface UserReserveData {
|
2020-07-13 08:54:08 +00:00
|
|
|
principalATokenBalance: BigNumber;
|
|
|
|
currentATokenBalance: BigNumber;
|
|
|
|
currentATokenUserIndex: BigNumber;
|
|
|
|
interestRedirectionAddress: string;
|
|
|
|
redirectionAddressRedirectedBalance: BigNumber;
|
|
|
|
redirectedBalance: BigNumber;
|
|
|
|
currentStableDebt: BigNumber;
|
|
|
|
currentVariableDebt: BigNumber;
|
|
|
|
principalStableDebt: BigNumber;
|
|
|
|
principalVariableDebt: BigNumber;
|
|
|
|
variableBorrowIndex: BigNumber;
|
|
|
|
liquidityRate: BigNumber;
|
|
|
|
stableBorrowRate: BigNumber;
|
|
|
|
stableRateLastUpdated: 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;
|
|
|
|
}
|