Skip to main content

PCVDeposit

Functions

withdrawERC20

function withdrawERC20(
address token,
address to,
uint256 amount
) public

withdraw ERC20 from the contract

Parameters

NameTypeDescription
tokenaddressaddress of the ERC20 to send
toaddressaddress destination of the ERC20
amountuint256quantity of ERC20 to send

_withdrawERC20

function _withdrawERC20(
address token,
address to,
uint256 amount
) internal

Parameters

NameTypeDescription
tokenaddress
toaddress
amountuint256

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

balance

function balance() public returns (uint256)

gets the effective balance of "balanceReportedIn" token if the deposit were fully withdrawn

resistantBalanceAndFei

function resistantBalanceAndFei() public returns (uint256, uint256)

gets the resistant token balance and protocol owned fei of this deposit