mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import BigNumber from 'bignumber.js';
|
|
|
|
export interface UserReserveData {
|
|
scaledATokenBalance: BigNumber;
|
|
currentATokenBalance: BigNumber;
|
|
currentStableDebt: BigNumber;
|
|
currentVariableDebt: BigNumber;
|
|
principalStableDebt: BigNumber;
|
|
scaledVariableDebt: 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;
|
|
totalStableDebt: BigNumber;
|
|
totalVariableDebt: BigNumber;
|
|
principalStableDebt: BigNumber,
|
|
scaledVariableDebt: 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;
|
|
}
|