Skip to content

VirtualSynth

Description

Source: contracts/VirtualSynth.sol

Variables

currencyKey

Source

Type: bytes32

decimals

Source

Type: uint8

initialSupply

Source

Type: uint256

initialized

Source

Type: bool

resolver

Source

Type: contract IAddressResolver

settled

Source

Type: bool

settledAmount

Source

Type: uint256

synth

Source

Type: contract IERC20

Views

balanceOfUnderlying

Source

Details

Signature

balanceOfUnderlying(address account) view returns (uint256)

Visibility

external

State Mutability

view

name

Source

Details

Signature

name() view returns (string)

Visibility

external

State Mutability

view

rate

Source

Details

Signature

rate() view returns (uint256)

Visibility

external

State Mutability

view

readyToSettle

Source

Details

Signature

readyToSettle() view returns (bool)

Visibility

external

State Mutability

view

secsLeftInWaitingPeriod

Source

Details

Signature

secsLeftInWaitingPeriod() view returns (uint256)

Visibility

external

State Mutability

view

symbol

Source

Details

Signature

symbol() view returns (string)

Visibility

external

State Mutability

view

Internal Functions

balanceUnderlying

Source

Details

Signature

balanceUnderlying(address account) view returns (uint256)

Visibility

internal

State Mutability

view

calcRate

Source

Details

Signature

calcRate() view returns (uint256)

Visibility

internal

State Mutability

view

exchanger

Source

Details

Signature

exchanger() view returns (contract IExchanger)

Visibility

internal

State Mutability

view

secsLeft

Source

Details

Signature

secsLeft() view returns (uint256)

Visibility

internal

State Mutability

view

settleSynth

Source

Details

Signature

settleSynth()

Visibility

internal

State Mutability

``

Emits

External Functions

initialize

Source

Details

Signature

initialize(contract IERC20 _synth, contract IAddressResolver _resolver, address _recipient, uint256 _amount, bytes32 _currencyKey)

Visibility

external

State Mutability

``

Requires

settle

Source

Details

Signature

settle(address account)

Visibility

external

State Mutability

``

Events

Settled

Source

Signature: Settled(uint256 totalSupply, uint256 amountAfterSettled)