GetUserAccountData
Aave V2 Getter Plugin - GetUserAccountData
Description
Returns the user account data across all the reserves
Method
getUserAccountData(address)
Input Parameters
No required input parameters
Method Parameters
Name | Plugin Type | Description |
---|---|---|
user |
| Address of user |
Returned Values
Name | Plugin Type | Description |
---|---|---|
totalCollateralETH |
| Total collateral in ETH of the use (wei decimal unit) |
totalDebtETH |
| Total debt in ETH of the user (wei decimal unit) |
availableBorrowsETH |
| Borrowing power left of the user (wei decimal unit) |
currentLiquidationThreshold |
| Liquidation threshold of the user. (1e4 format => percentage plus two decimals) |
ltv |
| Loan To Value of the user (1e4 format => percentage plus two decimals) |
healthFactor |
| Current health factor of the user. |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Aave V2 getUserAccountData method here
Last updated