A wrapper to use ETH as collateral
-
receive() (external)
-
deposit() (public)
-
withdraw(uint256 _wad) (public)
-
totalSupply() (public)
-
approve(address _guy, uint256 _wad) (public)
-
transfer(address _dst, uint256 _wad) (public)
-
transferFrom(address _src, address _dst, uint256 _wad) (public)
-
Approval(address src, address guy, uint256 wad)
-
Transfer(address src, address dst, uint256 wad)
-
Deposit(address dst, uint256 wad)
-
Withdrawal(address src, uint256 wad)
fallback function that receives ETH
will get called in a tx with ETH
wrap deposited ETH into WETH
withdraw ETH from contract
Unwrap from WETH to ETH
_wad
: amount WETH to unwrap and withdraw
get ETH total supply
- total supply
approve transfer
-
_guy
: address to approve -
_wad
: amount of WETH
- True if tx succeeds, False if not
transfer WETH
-
_dst
: destination address -
_wad
: amount to transfer
- True if tx succeeds, False if not
transfer from address
-
_src
: source address -
_dst
: destination address -
_wad
: amount to transfer
- True if tx succeeds, False if not
emits an event when a sender approves WETH
emits an event when a sender transfers WETH
emits an event when a sender deposits ETH into this contract
emits an event when a sender withdraws ETH from this contract