# CollateralUtils

*Collaterals decimal precision internal library*

## CollateralConfig

```solidity
struct CollateralConfig {
  uint128 precision;
  uint128 precisionDelta;
}
```

## getCollateralConfig

```solidity
function getCollateralConfig(address _token) internal view returns (struct CollateralUtils.CollateralConfig _meta)
```

\_Calculates `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\_

### Parameters

| Name    | Type    | Description              |
| ------- | ------- | ------------------------ |
| \_token | address | collateral token address |
