DecimalsUtils
Constants
REFERENCE_CURRENCY_DECIMALS
Decimals used for the reference currency.
uint8 internal constant REFERENCE_CURRENCY_DECIMALS = 18;MIN_DECIMALS
Supported decimals range for assets
uint8 private constant MIN_DECIMALS = 6;MAX_DECIMALS
uint8 private constant MAX_DECIMALS = 18;Functions
_checkDecimals
Checks that asset exposes decimals() and that it is within the supported range.
function _checkDecimals(address asset) internal view;Parameters
| Name | Type | Description |
|---|---|---|
| asset | address |