CollateralFactor
Compound V2 Getter Plugin - CollateralFactor
Description
A cToken’s collateral factor can range from 0-90%, and represents the proportionate increase in liquidity (borrow limit) that an account receives by minting the cToken. Generally, large or liquid assets have high collateral factors, while small or illiquid assets have low collateral factors. If an asset has a 0% collateral factor, it can’t be used as collateral (or seized in liquidation), though it can still be borrowed.
Method
collateralFactor(address)
Input Parameters
No required input parameters
Method Parameters
Name | Plugin Type | Description |
---|---|---|
cToken |
| The address of the cToken to check if listed and get the collateral factor for. |
Returned Values
Name | Plugin Type | Description |
---|---|---|
isListed |
| Represents whether the comptroller recognizes this cToken |
collateralFactor |
| Is multiplied by a supply balance to determine how much value can be borrowed |
isComped |
| Indicates whether or not suppliers and borrowers are distributed COMP tokens. |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Compound V2 collateral factor method here
Last updated