Skip to content

MultiCollateralSynth

Description

Implemented in SIP 35: Skinny Ether Collateral

This contract was required by EtherCollateral to allow it the ability to issue the MultiCollateralSynth in this case sETH.

It could be used where there a multiple Collateral contracts. i.e. If there where a DAICollateral for issuing sUSD or a WBTCCollateral Contract for issuing sBTC then those synths would need to inherit MultiCollateralSynth and then have their corresponding Collateral Contract set via the constructor argument multiCollateralKey

Source: contracts/MultiCollateralSynth.sol

Architecture

Variables

CONTRACT_NAME

Source

Type: bytes32

Constructor

constructor

Source

Details

Signature

constructor(address payable _proxy, contract TokenState _tokenState, string _tokenName, string _tokenSymbol, address _owner, bytes32 _currencyKey, uint256 _totalSupply, address _resolver)

Visibility

public

State Mutability

``

Views

resolverAddressesRequired

Source

Details

Signature

resolverAddressesRequired() view returns (bytes32[] addresses)

Visibility

public

State Mutability

view

Restricted Functions

burn

Source

Details

Signature

burn(address account, uint256 amount)

Visibility

external

State Mutability

``

Modifiers

issue

Source

Details

Signature

issue(address account, uint256 amount)

Visibility

external

State Mutability

``

Modifiers

Internal Functions

_isInternalContract

Source

Details

Signature

_isInternalContract(address account) view returns (bool)

Visibility

internal

State Mutability

view

collateralManager

Source

Details

Signature

collateralManager() view returns (contract ICollateralManager)

Visibility

internal

State Mutability

view

etherWrapper

Source

Details

Signature

etherWrapper() view returns (contract IEtherWrapper)

Visibility

internal

State Mutability

view

wrapperFactory

Source

Details

Signature

wrapperFactory() view returns (contract IWrapperFactory)

Visibility

internal

State Mutability

view