IsBorrowCollateralized
Compound V3 Getter Plugin - IsBorrowCollateralized
Description
This function returns true if the account passed to it has non-negative liquidity based on the borrow collateral factors. This function returns false if an account does not have sufficient liquidity to increase its borrow position. A return value of false does not necessarily imply that the account is presently liquidatable.
Method
isBorrowCollateralized(address)
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| Comet address |
Method Parameters
Name | Plugin Type | Description |
---|---|---|
account |
| The account to examine collateralization. |
Returned Values
Name | Plugin Type | Description |
---|---|---|
hasEnoughLiquidity |
| Returns true if the account has enough liquidity for borrowing. |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Compound V3 Borrow Collateralization method here
Last updated