Skip to main content

IPCVDeposit

Volt Protocol

a PCV Deposit interface

Methods

balance

function balance() external view returns (uint256)

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

Returns

NameTypeDescription
_0uint256undefined

balanceReportedIn

function balanceReportedIn() external view returns (address)

gets the token address in which this deposit returns its balance

Returns

NameTypeDescription
_0addressundefined

deposit

function deposit() external nonpayable

resistantBalanceAndVolt

function resistantBalanceAndVolt() external view returns (uint256, uint256)

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

Returns

NameTypeDescription
_0uint256undefined
_1uint256undefined

withdraw

function withdraw(address to, uint256 amount) external nonpayable

Parameters

NameTypeDescription
toaddressundefined
amountuint256undefined

withdrawERC20

function withdrawERC20(address token, address to, uint256 amount) external nonpayable

Parameters

NameTypeDescription
tokenaddressundefined
toaddressundefined
amountuint256undefined

withdrawETH

function withdrawETH(address payable to, uint256 amount) external nonpayable

Parameters

NameTypeDescription
toaddress payableundefined
amountuint256undefined

Events

Deposit

event Deposit(address indexed _from, uint256 _amount)

Parameters

NameTypeDescription
_from indexedaddressundefined
_amountuint256undefined

WithdrawERC20

event WithdrawERC20(address indexed _caller, address indexed _token, address indexed _to, uint256 _amount)

Parameters

NameTypeDescription
_caller indexedaddressundefined
_token indexedaddressundefined
_to indexedaddressundefined
_amountuint256undefined

WithdrawETH

event WithdrawETH(address indexed _caller, address indexed _to, uint256 _amount)

Parameters

NameTypeDescription
_caller indexedaddressundefined
_to indexedaddressundefined
_amountuint256undefined

Withdrawal

event Withdrawal(address indexed _caller, address indexed _to, uint256 _amount)

Parameters

NameTypeDescription
_caller indexedaddressundefined
_to indexedaddressundefined
_amountuint256undefined