IWETH10

Git Source

Inherits: IERC20

Functions

deposit

msg.value of ETH sent to this contract grants caller account a matching increase in WETH10 token balance. Emits {Transfer} event to reflect WETH10 token mint of msg.value from address(0) to caller account.

function deposit() external payable;

withdrawTo

*Burn value WETH10 token from caller account and withdraw matching ETH to account (to). Emits {Transfer} event to reflect WETH10 token burn of value to address(0) from caller account. Requirements:

  • caller account must have at least value balance of WETH10 token.*
function withdrawTo(address payable to, uint256 value) external;