DecimalsUtils
Constants
MIN_DECIMALS
Supported decimals range for assets
uint8 private constant MIN_DECIMALS = 6;MAX_DECIMALS
uint8 private constant MAX_DECIMALS = 18;SHARE_TOKEN_DECIMALS
Decimals and unit for machine share token.
uint8 internal constant SHARE_TOKEN_DECIMALS = 18;SHARE_TOKEN_UNIT
uint256 internal constant SHARE_TOKEN_UNIT = 10 ** SHARE_TOKEN_DECIMALS;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 |