Skip to content

DynamicSynthRedeemer

Description

Source: contracts/DynamicSynthRedeemer.sol

Variables

CONTRACT_NAME

Source

Type: bytes32

discountRate

Source

Type: uint256

redemptionActive

Source

Type: bool

Constructor

constructor

Source

Details

Signature

constructor(address _owner, address _resolver)

Visibility

public

State Mutability

``

Views

getDiscountRate

Source

Details

Signature

getDiscountRate() view returns (uint256)

Visibility

external

State Mutability

view

resolverAddressesRequired

Source

Details

Signature

resolverAddressesRequired() view returns (bytes32[] addresses)

Visibility

public

State Mutability

view

Restricted Functions

resumeRedemption

Source

Details

Signature

resumeRedemption()

Visibility

external

State Mutability

``

Requires

Modifiers

Emits

setDiscountRate

Source

Details

Signature

setDiscountRate(uint256 _newRate)

Visibility

external

State Mutability

``

Requires

Modifiers

Emits

suspendRedemption

Source

Details

Signature

suspendRedemption()

Visibility

external

State Mutability

``

Requires

Modifiers

Emits

Internal Functions

_exchangeRates

Source

Details

Signature

_exchangeRates() view returns (contract IExchangeRates)

Visibility

internal

State Mutability

view

_issuer

Source

Details

Signature

_issuer() view returns (contract IIssuer)

Visibility

internal

State Mutability

view

_proxyAddressForKey

Source

Details

Signature

_proxyAddressForKey(bytes32 currencyKey) returns (address)

Visibility

internal

State Mutability

``

Requires

_redeem

Source

Details

Signature

_redeem(address synthProxy, bytes32 currencyKey, uint256 amountOfSynth)

Visibility

internal

State Mutability

``

Requires

Emits

_redeemingActive

Source

Details

Signature

_redeemingActive() view

Visibility

internal

State Mutability

view

Requires

External Functions

redeem

Source

Details

Signature

redeem(bytes32 currencyKey)

Visibility

external

State Mutability

``

Modifiers

redeemAll

Source

Details

Signature

redeemAll(bytes32[] currencyKeys)

Visibility

external

State Mutability

``

Modifiers

redeemPartial

Source

Details

Signature

redeemPartial(bytes32 currencyKey, uint256 amountOfSynth)

Visibility

external

State Mutability

``

Requires

Modifiers

Modifiers

requireRedemptionActive

Source

Events

DiscountRateUpdated

Source

Signature: DiscountRateUpdated(uint256 discountRate)

RedemptionResumed

Source

Signature: RedemptionResumed()

RedemptionSuspended

Source

Signature: RedemptionSuspended()

SynthRedeemed

Source

Signature: SynthRedeemed(address synth, address account, uint256 amountOfSynth, uint256 amountInsUSD)