Skip to main content

WethPCVDeposit

Functions

receive

function receive() external

Empty callback on ETH reception

wrapETH

function wrapETH() public

Wraps all ETH held by the contract to WETH Anyone can call it

deposit

function deposit() external

deposit

withdrawETH

function withdrawETH(
address payable to,
uint256 amountOut
) external

withdraw ETH from the contract

Parameters

NameTypeDescription
toaddress payableaddress to send ETH
amountOutuint256amount of ETH to send