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
Name | Type | Description |
---|---|---|
_0 | contract IERC20 | undefined |
withdraw
function withdraw(address to, uint256 amountUnderlying) external nonpayable
Withdraw underlying
Parameters
Name | Type | Description |
---|---|---|
to | address | the address to send PCV to |
amountUnderlying | uint256 | of tokens withdrawn |
withdrawAll
function withdrawAll(address to) external nonpayable
Withdraw all of underlying
Parameters
Name | Type | Description |
---|---|---|
to | address | the address to send PCV to |
wrapETH
function wrapETH() external nonpayable
Wraps all ETH held by the contract to WETH. Permissionless, anyone can call it