CollateralJoinChild
Inherits: CollateralJoin, DisableableChild, ICollateralJoinChild
This contract inherits all the functionality of CollateralJoin to be factory deployed
Functions
constructor
constructor(address _safeEngine, bytes32 _cType, address _collateral) CollateralJoin(_safeEngine, _cType, _collateral);
Parameters
Name | Type | Description |
---|---|---|
_safeEngine | address | Address of the SafeEngine contract |
_cType | bytes32 | Bytes32 representation of the collateral type |
_collateral | address | Address of the ERC20 collateral token |
_isEnabled
Method override to check for contract enablement also in the parent factory
function _isEnabled() internal view override(DisableableChild, Disableable) returns (bool _enabled);
Returns
Name | Type | Description |
---|---|---|
_enabled | bool | Whether the contract and the factory are enabled or not |
_onContractDisable
Method override to allow disabling contract only through the parent factory
function _onContractDisable() internal override(DisableableChild, Disableable);