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
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
balanceReportedIn
function balanceReportedIn() external view returns (address)
gets the token address in which this deposit returns its balance
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
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
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
_1 | uint256 | undefined |
withdraw
function withdraw(address to, uint256 amount) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
to | address | undefined |
amount | uint256 | undefined |
withdrawERC20
function withdrawERC20(address token, address to, uint256 amount) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
token | address | undefined |
to | address | undefined |
amount | uint256 | undefined |
withdrawETH
function withdrawETH(address payable to, uint256 amount) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
to | address payable | undefined |
amount | uint256 | undefined |
Events
Deposit
event Deposit(address indexed _from, uint256 _amount)
Parameters
Name | Type | Description |
---|---|---|
_from indexed | address | undefined |
_amount | uint256 | undefined |
WithdrawERC20
event WithdrawERC20(address indexed _caller, address indexed _token, address indexed _to, uint256 _amount)
Parameters
Name | Type | Description |
---|---|---|
_caller indexed | address | undefined |
_token indexed | address | undefined |
_to indexed | address | undefined |
_amount | uint256 | undefined |
WithdrawETH
event WithdrawETH(address indexed _caller, address indexed _to, uint256 _amount)
Parameters
Name | Type | Description |
---|---|---|
_caller indexed | address | undefined |
_to indexed | address | undefined |
_amount | uint256 | undefined |
Withdrawal
event Withdrawal(address indexed _caller, address indexed _to, uint256 _amount)
Parameters
Name | Type | Description |
---|---|---|
_caller indexed | address | undefined |
_to indexed | address | undefined |
_amount | uint256 | undefined |