DynamicSynthRedeemer¶
Description¶
Source: contracts/DynamicSynthRedeemer.sol
Variables¶
CONTRACT_NAME
¶
Type: bytes32
discountRate
¶
Type: uint256
redemptionActive
¶
Type: bool
Constructor¶
constructor
¶
Details
Signature
constructor(address _owner, address _resolver)
Visibility
public
State Mutability
``
Views¶
getDiscountRate
¶
Details
Signature
getDiscountRate() view returns (uint256)
Visibility
external
State Mutability
view
resolverAddressesRequired
¶
Details
Signature
resolverAddressesRequired() view returns (bytes32[] addresses)
Visibility
public
State Mutability
view
Restricted Functions¶
resumeRedemption
¶
Details
Signature
resumeRedemption()
Visibility
external
State Mutability
``
Requires
Modifiers
Emits
setDiscountRate
¶
Details
Signature
setDiscountRate(uint256 _newRate)
Visibility
external
State Mutability
``
Requires
Modifiers
Emits
suspendRedemption
¶
Details
Signature
suspendRedemption()
Visibility
external
State Mutability
``
Requires
Modifiers
Emits
Internal Functions¶
_exchangeRates
¶
Details
Signature
_exchangeRates() view returns (contract IExchangeRates)
Visibility
internal
State Mutability
view
_issuer
¶
Details
Signature
_issuer() view returns (contract IIssuer)
Visibility
internal
State Mutability
view
_proxyAddressForKey
¶
Details
Signature
_proxyAddressForKey(bytes32 currencyKey) returns (address)
Visibility
internal
State Mutability
``
Requires
_redeem
¶
Details
Signature
_redeem(address synthProxy, bytes32 currencyKey, uint256 amountOfSynth)
Visibility
internal
State Mutability
``
Requires
Emits
_redeemingActive
¶
Details
Signature
_redeemingActive() view
Visibility
internal
State Mutability
view
Requires
External Functions¶
redeem
¶
Details
Signature
redeem(bytes32 currencyKey)
Visibility
external
State Mutability
``
Modifiers
redeemAll
¶
Details
Signature
redeemAll(bytes32[] currencyKeys)
Visibility
external
State Mutability
``
Modifiers
redeemPartial
¶
Details
Signature
redeemPartial(bytes32 currencyKey, uint256 amountOfSynth)
Visibility
external
State Mutability
``
Requires
Modifiers
Modifiers¶
requireRedemptionActive
¶
Events¶
DiscountRateUpdated
¶
Signature: DiscountRateUpdated(uint256 discountRate)
RedemptionResumed
¶
Signature: RedemptionResumed()
RedemptionSuspended
¶
Signature: RedemptionSuspended()
SynthRedeemed
¶
Signature: SynthRedeemed(address synth, address account, uint256 amountOfSynth, uint256 amountInsUSD)