Comment on page
WethGate
Upgradable contracts cannot receive ether via
transfer
because of increased SLOAD gas cost. We use this non-upgradeable contract as the recipient and then immediately transfer to an upgradable contract. More details about this issue can be found here. contract IWETH public weth;
Wrapped native token contract
function constructor(
contract IWETH _weth
) public
function withdraw(
address receiver,
uint256 wad
) external
Transfer assets to a receiver.
Name | Type | Description |
---|---|---|
receiver | address | This address will receive a transfer. |
wad | uint256 | Amount in wei |
function _safeTransferETH(
address _to,
uint256 _value
) internal
function receive(
) external
function version(
) external returns (uint256)
Get this contract's version
event Withdrawal(
address receiver,
uint256 wad
)
Emitted when any amount is withdrawn.
Last modified 1yr ago