EtherWrapper¶
Description¶
Source: contracts/EtherWrapper.sol
Variables¶
feesEscrowed
¶
Type: uint256
sETHIssued
¶
Type: uint256
sUSDIssued
¶
Type: uint256
Constructor¶
constructor
¶
Details
Signature
constructor(address _owner, address _resolver, address payable _WETH)
Visibility
public
State Mutability
``
Views¶
burnFeeRate
¶
Details
Signature
burnFeeRate() view returns (uint256)
Visibility
public
State Mutability
view
calculateBurnFee
¶
Details
Signature
calculateBurnFee(uint256 amount) view returns (uint256)
Visibility
public
State Mutability
view
calculateMintFee
¶
Details
Signature
calculateMintFee(uint256 amount) view returns (uint256)
Visibility
public
State Mutability
view
capacity
¶
Details
Signature
capacity() view returns (uint256 _capacity)
Visibility
public
State Mutability
view
getReserves
¶
Details
Signature
getReserves() view returns (uint256)
Visibility
public
State Mutability
view
maxETH
¶
Details
Signature
maxETH() view returns (uint256)
Visibility
public
State Mutability
view
mintFeeRate
¶
Details
Signature
mintFeeRate() view returns (uint256)
Visibility
public
State Mutability
view
resolverAddressesRequired
¶
Details
Signature
resolverAddressesRequired() view returns (bytes32[] addresses)
Visibility
public
State Mutability
view
totalIssuedSynths
¶
Details
Signature
totalIssuedSynths() view returns (uint256)
Visibility
public
State Mutability
view
weth
¶
Details
Signature
weth() view returns (contract IWETH)
Visibility
public
State Mutability
view
Internal Functions¶
_burn
¶
Details
Signature
_burn(uint256 principal, uint256 amountIn)
Visibility
internal
State Mutability
``
Requires
Emits
_mint
¶
exchangeRates
¶
Details
Signature
exchangeRates() view returns (contract IExchangeRates)
Visibility
internal
State Mutability
view
feePool
¶
Details
Signature
feePool() view returns (contract IFeePool)
Visibility
internal
State Mutability
view
issuer
¶
Details
Signature
issuer() view returns (contract IIssuer)
Visibility
internal
State Mutability
view
synthsETH
¶
Details
Signature
synthsETH() view returns (contract ISynth)
Visibility
internal
State Mutability
view
synthsUSD
¶
Details
Signature
synthsUSD() view returns (contract ISynth)
Visibility
internal
State Mutability
view
External Functions¶
burn
¶
Details
Signature
burn(uint256 amountIn)
Visibility
external
State Mutability
``
Requires
Modifiers
distributeFees
¶
Details
Signature
distributeFees()
Visibility
external
State Mutability
``
Requires
mint
¶
Details
Signature
mint(uint256 amountIn)
Visibility
external
State Mutability
``
Requires
Modifiers
Events¶
Burned
¶
Signature: Burned(address account, uint256 principal, uint256 fee, uint256 amountIn)
Minted
¶
Signature: Minted(address account, uint256 principal, uint256 fee, uint256 amountIn)