The type of the collateral. Options are Invalid, ERC20, ERC721 and ERC1155.
enum TokenType {
Invalid,
ERC20,
ERC721,
ERC155
}enum AccountValue {
Market,
Loan,
Liquidation
}Holds information about the type of collateral held in vault. ltv + liqPenalty + liqBonus must be < lltv
| Name | Type | Description |
|---|
struct CollateralParams {
uint256 ltv;
uint256 lltv;
uint256 liqPenalty;
uint256 liqBonus;
}struct CollateralInfoInit {
address token;
struct CollateralParams info;
}Information about collateral deposited to the pool.
struct CollateralDeposit {
address token;
enum TokenType tokenType;
uint256 amount;
uint256[] tokenIds;
}The value of a collateral token deposited by an account.
struct AccountCollateralValue {
address token;
uint256 amount;
int256 value;
}function poolAsset() external view returns (contract ERC20)function debtToken() external view returns (contract DebtToken)function characterization() external view returns (string)function supplyCap() external view returns (uint256)function supplied() external view returns (uint256)function borrowed() external view returns (uint256)function available() external view returns (uint256)function baseSupplyAPY() external view returns (uint256)function baseBorrowAPY() external view returns (uint256)function utilization() external view returns (uint256)function tvl(bool) external view returns (uint256)function totalReserveShares() external view returns (uint256)function priceFeed() external view returns (contract IPriceFeed)function interestRatesModel() external view returns (contract IInterestRateModel)function collaterals() external view returns (address[])function collateralInfo(address) external view returns (struct CollateralParams)function tokenCollateralDeposited(address) external view returns (uint256)function accountHealth(address account) external view returns (uint256)function assetBalance(address account) external view returns (uint256)function assetsBorrowed(address account) external view returns (uint256)function accountCollateralAmount(address account, address collateral) external view returns (uint256)function tokenMarketValue(address token, uint256 amount) external view returns (uint256)function tokenLoanValue(address token, uint256 amount) external view returns (uint256)function tokenLiquidationValue(address token, uint256 amount) external view returns (uint256)function totalAccountCollateralValue(address account, enum AccountValue valueType) external view returns (uint256)