You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// @dev Wrapped Ether v10 (WETH10) is an Ether (ETH) ERC-20 wrapper. You can `deposit` ETH and obtain a WETH10 balance which can then be operated as an ERC-20 token. You can
7
+
/// `withdraw` ETH from WETH10, which will then burn WETH10 token in your wallet. The amount of WETH10 token in any wallet is always identical to the
8
+
/// balance of ETH deposited minus the ETH withdrawn with that specific wallet.
9
+
interfaceIWETH {
10
+
/// @dev `msg.value` of ETH sent to this contract grants caller account a matching increase in WETH10 token balance.
11
+
/// Emits {Transfer} event to reflect WETH10 token mint of `msg.value` from `address(0)` to caller account.
12
+
function deposit() externalpayable;
13
+
14
+
/// @dev Burn `value` WETH10 token from caller account and withdraw matching ETH to the same.
15
+
/// Emits {Transfer} event to reflect WETH10 token burn of `value` to `address(0)` from caller account.
16
+
/// Requirements:
17
+
/// - caller account must have at least `value` balance of WETH10 token.
0 commit comments