SynthRedeemer¶
Description¶
Source: contracts/SynthRedeemer.sol
Variables¶
CONTRACT_NAME
¶
Type: bytes32
redemptions
¶
Type: mapping(address => uint256)
Constructor¶
constructor
¶
Details
Signature
constructor(address _resolver)
Visibility
public
State Mutability
``
Views¶
balanceOf
¶
Details
Signature
balanceOf(contract IERC20 synthProxy, address account) view returns (uint256 balanceInsUSD)
Visibility
external
State Mutability
view
resolverAddressesRequired
¶
Details
Signature
resolverAddressesRequired() view returns (bytes32[] addresses)
Visibility
public
State Mutability
view
totalSupply
¶
Details
Signature
totalSupply(contract IERC20 synthProxy) view returns (uint256 supplyInsUSD)
Visibility
public
State Mutability
view
Restricted Functions¶
deprecate
¶
Details
Signature
deprecate(contract IERC20 synthProxy, uint256 rateToRedeem)
Visibility
external
State Mutability
``
Requires
Modifiers
Emits
Internal Functions¶
_redeem
¶
Details
Signature
_redeem(contract IERC20 synthProxy, uint256 amountOfSynth)
Visibility
internal
State Mutability
``
Requires
Emits
issuer
¶
Details
Signature
issuer() view returns (contract IIssuer)
Visibility
internal
State Mutability
view
requireOnlyIssuer
¶
Details
Signature
requireOnlyIssuer() view
Visibility
internal
State Mutability
view
Requires
sUSD
¶
Details
Signature
sUSD() view returns (contract IERC20)
Visibility
internal
State Mutability
view
External Functions¶
redeem
¶
Details
Signature
redeem(contract IERC20 synthProxy)
Visibility
external
State Mutability
``
redeemAll
¶
Details
Signature
redeemAll(contract IERC20[] synthProxies)
Visibility
external
State Mutability
``
redeemPartial
¶
Details
Signature
redeemPartial(contract IERC20 synthProxy, uint256 amountOfSynth)
Visibility
external
State Mutability
``
Requires
Modifiers¶
onlyIssuer
¶
Events¶
SynthDeprecated
¶
Signature: SynthDeprecated(address synth, uint256 rateToRedeem, uint256 totalSynthSupply, uint256 supplyInsUSD)
SynthRedeemed
¶
Signature: SynthRedeemed(address synth, address account, uint256 amountOfSynth, uint256 amountInsUSD)