GetAccountLiquidity
Compound V2 Getter Plugin - GetAccountLiquidity
Description
Account Liquidity represents the USD value borrowable by a user, before it reaches liquidation. Users with a shortfall (negative liquidity) are subject to liquidation, and can’t withdraw or borrow assets until Account Liquidity is positive again.
Method
getUserAccountData(address)
Input Parameters
No required input parameters
Method Parameters
Name | Plugin Type | Description |
---|---|---|
account |
| The account whose liquidity shall be calculated |
Returned Values
Name | Plugin Type | Description |
---|---|---|
liquidity |
| A non-zero liquidity value indicates the account has available account liquidity |
shortfall |
| Shortfall value indicates the account is currently below his/her collateral requirement and is subject to liquidation. |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Compound V2 get account liquidity method here
Last updated