Skip to content

EtherWrapper

Description

Source: contracts/EtherWrapper.sol

Variables

feesEscrowed

Source

Type: uint256

sETHIssued

Source

Type: uint256

sUSDIssued

Source

Type: uint256

Constructor

constructor

Source

Details

Signature

constructor(address _owner, address _resolver, address payable _WETH)

Visibility

public

State Mutability

``

Views

burnFeeRate

Source

Details

Signature

burnFeeRate() view returns (uint256)

Visibility

public

State Mutability

view

calculateBurnFee

Source

Details

Signature

calculateBurnFee(uint256 amount) view returns (uint256)

Visibility

public

State Mutability

view

calculateMintFee

Source

Details

Signature

calculateMintFee(uint256 amount) view returns (uint256)

Visibility

public

State Mutability

view

capacity

Source

Details

Signature

capacity() view returns (uint256 _capacity)

Visibility

public

State Mutability

view

getReserves

Source

Details

Signature

getReserves() view returns (uint256)

Visibility

public

State Mutability

view

maxETH

Source

Details

Signature

maxETH() view returns (uint256)

Visibility

public

State Mutability

view

mintFeeRate

Source

Details

Signature

mintFeeRate() view returns (uint256)

Visibility

public

State Mutability

view

resolverAddressesRequired

Source

Details

Signature

resolverAddressesRequired() view returns (bytes32[] addresses)

Visibility

public

State Mutability

view

totalIssuedSynths

Source

Details

Signature

totalIssuedSynths() view returns (uint256)

Visibility

public

State Mutability

view

weth

Source

Details

Signature

weth() view returns (contract IWETH)

Visibility

public

State Mutability

view

Internal Functions

_burn

Source

Details

Signature

_burn(uint256 principal, uint256 amountIn)

Visibility

internal

State Mutability

``

Requires

Emits

_mint

Source

Details

Signature

_mint(uint256 amountIn)

Visibility

internal

State Mutability

``

Emits

exchangeRates

Source

Details

Signature

exchangeRates() view returns (contract IExchangeRates)

Visibility

internal

State Mutability

view

feePool

Source

Details

Signature

feePool() view returns (contract IFeePool)

Visibility

internal

State Mutability

view

issuer

Source

Details

Signature

issuer() view returns (contract IIssuer)

Visibility

internal

State Mutability

view

synthsETH

Source

Details

Signature

synthsETH() view returns (contract ISynth)

Visibility

internal

State Mutability

view

synthsUSD

Source

Details

Signature

synthsUSD() view returns (contract ISynth)

Visibility

internal

State Mutability

view

External Functions

burn

Source

Details

Signature

burn(uint256 amountIn)

Visibility

external

State Mutability

``

Requires

Modifiers

distributeFees

Source

Details

Signature

distributeFees()

Visibility

external

State Mutability

``

Requires

mint

Source

Details

Signature

mint(uint256 amountIn)

Visibility

external

State Mutability

``

Requires

Modifiers

Events

Burned

Source

Signature: Burned(address account, uint256 principal, uint256 fee, uint256 amountIn)

Minted

Source

Signature: Minted(address account, uint256 principal, uint256 fee, uint256 amountIn)