Skip to main content

IERC20HoldingPCVDeposit

ERC20HoldingPCVDeposit

PCVDeposit that is used to hold ERC20 tokens as a safe harbour. Deposit is a no-op

Methods

deposit

function deposit() external nonpayable

No-op deposit

token

function token() external view returns (contract IERC20)

Token which the balance is reported in

Returns

NameTypeDescription
_0contract IERC20undefined

withdraw

function withdraw(address to, uint256 amountUnderlying) external nonpayable

Withdraw underlying

Parameters

NameTypeDescription
toaddressthe address to send PCV to
amountUnderlyinguint256of tokens withdrawn

withdrawAll

function withdrawAll(address to) external nonpayable

Withdraw all of underlying

Parameters

NameTypeDescription
toaddressthe address to send PCV to

wrapETH

function wrapETH() external nonpayable

Wraps all ETH held by the contract to WETH. Permissionless, anyone can call it