CollateralConfig
getCollateralConfig
precision (10^decimals) and precisionDelta (precision difference between 18 decimals and token decimals) of a given IERC20 token
Notice: not compatible with tokens with more than 18 decimals_
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
struct CollateralConfig {
uint128 precision;
uint128 precisionDelta;
}
function getCollateralConfig(address _token) internal view returns (struct CollateralUtils.CollateralConfig _meta)
precision (10^decimals) and precisionDelta (precision difference between 18 decimals and token decimals) of a given IERC20 token
Notice: not compatible with tokens with more than 18 decimals_
| Name | Type | Description |
|---|---|---|
| _token | address | collateral token address |
