IModifiablePerCollateral

Git Source

Inherits: IAuthorizable, IModifiable

Functions

collateralList

List of all the collateral types registered in the OracleRelayer

function collateralList() external view returns (bytes32[] memory __collateralList);

Returns

NameTypeDescription
__collateralListbytes32[]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

NameTypeDescription
_cTypebytes32Collateral type to register
_collateralParamsbytesCollateral parameters

modifyParameters

Set a new value for a collateral specific parameter

function modifyParameters(bytes32 _cType, bytes32 _param, bytes memory _data) external;

Parameters

NameTypeDescription
_cTypebytes32String identifier of the collateral to modify
_parambytes32String identifier of the parameter to modify
_databytesEncoded data to modify the parameter

Events

InitializeCollateralType

Emitted when a new collateral type is registered

event InitializeCollateralType(bytes32 _cType);

Parameters

NameTypeDescription
_cTypebytes32Bytes32 representation of the collateral type

Errors

CollateralTypeAlreadyInitialized

error CollateralTypeAlreadyInitialized();