CollateralJoinChild

Git Source

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

NameTypeDescription
_safeEngineaddressAddress of the SafeEngine contract
_cTypebytes32Bytes32 representation of the collateral type
_collateraladdressAddress 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

NameTypeDescription
_enabledboolWhether 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);