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.
Variables
weth
Wrapped native token contract
Functions
constructor
withdraw
Transfer assets to a receiver.
Parameters:
Name
Type
Description
receiver
address
This address will receive a transfer.
wad
uint256
Amount in wei
_safeTransferETH
receive
version
Get this contract's version
Events
Withdrawal
Emitted when any amount is withdrawn.
Last updated