MockERC20UniswapPCVDeposit
Functions
constructor
function constructor(
contract IERC20 _token
) public
Parameters
Name | Type | Description |
---|---|---|
_token | contract IERC20 |
deposit
function deposit() external
withdraw
function withdraw(
address to,
uint256 amount
) external
Parameters
Name | Type | Description |
---|---|---|
to | address | |
amount | uint256 |
withdrawERC20
function withdrawERC20(
address token,
address to,
uint256 amount
) public
Parameters
Name | Type | Description |
---|---|---|
token | address | |
to | address | |
amount | uint256 |
withdrawETH
function withdrawETH(
address payable to,
uint256 amountOut
) external
Parameters
Name | Type | Description |
---|---|---|
to | address payable | |
amountOut | uint256 |
balance
function balance() public returns (uint256)
gets the effective balance of "balanceReportedIn" token if the deposit were fully withdrawn
balanceReportedIn
function balanceReportedIn() public returns (address)
display the related token of the balance reported
resistantBalanceAndFei
function resistantBalanceAndFei() public returns (uint256, uint256)
gets the resistant token balance and protocol owned fei of this deposit