Modifiable
Inherits: IModifiable, Authorizable
Allows inheriting contracts to modify parameters values
Requires inheriting contracts to override _modifyParameters
virtual methods
State Variables
_GLOBAL_PARAM
Used to emit a global parameter modification event
bytes32 internal constant _GLOBAL_PARAM = bytes32(0);
Functions
modifyParameters
Set a new value for a global specific parameter
function modifyParameters(bytes32 _param, bytes memory _data) external isAuthorized validParams;
Parameters
Name | Type | Description |
---|---|---|
_param | bytes32 | String identifier of the parameter to modify |
_data | bytes | Encoded data to modify the parameter |
modifyParameters
Set a new value for a global specific parameter
function modifyParameters(
bytes32 _cType,
bytes32 _param,
bytes memory _data
) external isAuthorized validCParams(_cType);
Parameters
Name | Type | Description |
---|---|---|
_cType | bytes32 | |
_param | bytes32 | String identifier of the parameter to modify |
_data | bytes | Encoded data to modify the parameter |
_modifyParameters
Internal function to be overriden with custom logic to modify parameters
This function is set to revert if not overriden
function _modifyParameters(bytes32 _param, bytes memory _data) internal virtual;
_modifyParameters
Internal function to be overriden with custom logic to modify collateral parameters
This function is set to revert if not overriden
function _modifyParameters(bytes32 _cType, bytes32 _param, bytes memory _data) internal virtual;
_validateParameters
Internal function to be overriden with custom logic to validate parameters
function _validateParameters() internal view virtual;
_validateCParameters
Internal function to be overriden with custom logic to validate collateral parameters
function _validateCParameters(bytes32 _cType) internal view virtual;
validParams
Triggers a routine to validate parameters after a modification
modifier validParams();
validCParams
Triggers a routine to validate collateral parameters after a modification
modifier validCParams(bytes32 _cType);