VirtualSynth¶
Description¶
Source: contracts/VirtualSynth.sol
Variables¶
currencyKey
¶
Type: bytes32
decimals
¶
Type: uint8
initialSupply
¶
Type: uint256
initialized
¶
Type: bool
resolver
¶
Type: contract IAddressResolver
settled
¶
Type: bool
settledAmount
¶
Type: uint256
synth
¶
Type: contract IERC20
Views¶
balanceOfUnderlying
¶
Details
Signature
balanceOfUnderlying(address account) view returns (uint256)
Visibility
external
State Mutability
view
name
¶
Details
Signature
name() view returns (string)
Visibility
external
State Mutability
view
rate
¶
Details
Signature
rate() view returns (uint256)
Visibility
external
State Mutability
view
readyToSettle
¶
Details
Signature
readyToSettle() view returns (bool)
Visibility
external
State Mutability
view
secsLeftInWaitingPeriod
¶
Details
Signature
secsLeftInWaitingPeriod() view returns (uint256)
Visibility
external
State Mutability
view
symbol
¶
Details
Signature
symbol() view returns (string)
Visibility
external
State Mutability
view
Internal Functions¶
balanceUnderlying
¶
Details
Signature
balanceUnderlying(address account) view returns (uint256)
Visibility
internal
State Mutability
view
calcRate
¶
Details
Signature
calcRate() view returns (uint256)
Visibility
internal
State Mutability
view
exchanger
¶
Details
Signature
exchanger() view returns (contract IExchanger)
Visibility
internal
State Mutability
view
secsLeft
¶
Details
Signature
secsLeft() view returns (uint256)
Visibility
internal
State Mutability
view
settleSynth
¶
External Functions¶
initialize
¶
Details
Signature
initialize(contract IERC20 _synth, contract IAddressResolver _resolver, address _recipient, uint256 _amount, bytes32 _currencyKey)
Visibility
external
State Mutability
``
Requires
settle
¶
Details
Signature
settle(address account)
Visibility
external
State Mutability
``
Events¶
Settled
¶
Signature: Settled(uint256 totalSupply, uint256 amountAfterSettled)