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

Inheritance Graph

graph TD MultiCollateralSynth[MultiCollateralSynth] --> Synth[Synth] Synth[Synth] --> ExternStateToken[ExternStateToken] Synth[Synth] --> MixinResolver[MixinResolver] ExternStateToken[ExternStateToken] --> SelfDestructible[SelfDestructible] ExternStateToken[ExternStateToken] --> Proxyable[Proxyable] SelfDestructible[SelfDestructible] --> Owned[Owned] Proxyable[Proxyable] --> Owned[Owned] MixinResolver[MixinResolver] --> Owned[Owned]

Variables

multiCollateralKey

Source

Type: bytes32

Constructor

constructor

Source

Details

Signature

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

Visibility

public

State Mutability

nonpayable

Restricted Functions

burn

Source

Details

Signature

burn(address account, uint256 amount)

Visibility

external

State Mutability

nonpayable

Modifiers

issue

Source

Details

Signature

issue(address account, uint256 amount)

Visibility

external

State Mutability

nonpayable

Modifiers

Internal Functions

multiCollateral

Source

Details

Signature

multiCollateral() returns (address)

Visibility

internal

State Mutability

view

Modifiers

onlyInternalContracts

Source