IModifiablePerCollateral
Inherits: IAuthorizable, IModifiable
Functions
collateralList
List of all the collateral types registered in the OracleRelayer
function collateralList() external view returns (bytes32[] memory __collateralList);
Returns
Name | Type | Description |
---|---|---|
__collateralList | bytes32[] | Array of all the collateral types registered |
initializeCollateralType
Register a new collateral type in the SAFEEngine
function initializeCollateralType(bytes32 _cType, bytes memory _collateralParams) external;
Parameters
Name | Type | Description |
---|---|---|
_cType | bytes32 | Collateral type to register |
_collateralParams | bytes | Collateral parameters |
modifyParameters
Set a new value for a collateral specific parameter
function modifyParameters(bytes32 _cType, bytes32 _param, bytes memory _data) external;
Parameters
Name | Type | Description |
---|---|---|
_cType | bytes32 | String identifier of the collateral to modify |
_param | bytes32 | String identifier of the parameter to modify |
_data | bytes | Encoded data to modify the parameter |
Events
InitializeCollateralType
Emitted when a new collateral type is registered
event InitializeCollateralType(bytes32 _cType);
Parameters
Name | Type | Description |
---|---|---|
_cType | bytes32 | Bytes32 representation of the collateral type |
Errors
CollateralTypeAlreadyInitialized
error CollateralTypeAlreadyInitialized();