Skip to content

VirtualSynth

Description

Source: contracts/VirtualSynth.sol

Variables

currencyKey

Source

Type: bytes32

decimals

Source

Type: uint8

initialSupply

Source

Type: uint256

resolver

Source

Type: contract IAddressResolver

settled

Source

Type: bool

settledAmount

Source

Type: uint256

synth

Source

Type: contract IERC20

Constructor

constructor

Source

Details

Signature

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

Visibility

public

State Mutability

undefined

Internal Functions

balanceUnderlying

Source

Details

Signature

balanceUnderlying(address account) view returns (uint256)

Visibility

internal

State Mutability

undefined

calcRate

Source

Details

Signature

calcRate() view returns (uint256)

Visibility

internal

State Mutability

undefined

exchanger

Source

Details

Signature

exchanger() view returns (contract IExchanger)

Visibility

internal

State Mutability

undefined

secsLeft

Source

Details

Signature

secsLeft() view returns (uint256)

Visibility

internal

State Mutability

undefined

settleSynth

Source

Details

Signature

settleSynth()

Visibility

internal

State Mutability

undefined

Emits

External Functions

balanceOfUnderlying

Source

Details

Signature

balanceOfUnderlying(address account) view returns (uint256)

Visibility

external

State Mutability

undefined

name

Source

Details

Signature

name() view returns (string)

Visibility

external

State Mutability

undefined

rate

Source

Details

Signature

rate() view returns (uint256)

Visibility

external

State Mutability

undefined

readyToSettle

Source

Details

Signature

readyToSettle() view returns (bool)

Visibility

external

State Mutability

undefined

secsLeftInWaitingPeriod

Source

Details

Signature

secsLeftInWaitingPeriod() view returns (uint256)

Visibility

external

State Mutability

undefined

settle

Source

Details

Signature

settle(address account)

Visibility

external

State Mutability

undefined

symbol

Source

Details

Signature

symbol() view returns (string)

Visibility

external

State Mutability

undefined

Events

Settled

Source

Signature: Settled(uint256 totalSupply, uint256 amountAfterSettled)