ITokemakEthPool
Functions
deposit
function deposit(
uint256 amount
) external
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 |
withdraw
function withdraw(
uint256 requestedAmount,
bool asEth
) external
Parameters
Name | Type | Description |
---|---|---|
requestedAmount | uint256 | |
asEth | bool |
EthTokemakPCVDeposit
Functions
constructor
function constructor(
address _core,
address _pool,
address _rewards
) public
Tokemak ETH PCV Deposit constructor
Parameters
Name | Type | Description |
---|---|---|
_core | address | Fei Core for reference |
_pool | address | Tokemak pool to deposit in |
_rewards | address | Tokemak rewards contract |
receive
function receive() external
deposit
function deposit() external
deposit ETH to Tokemak
withdraw
function withdraw(
address to,
uint256 amountUnderlying
) external
withdraw tokens from the PCV allocation
Parameters
Name | Type | Description |
---|---|---|
to | address | the address to send PCV to |
amountUnderlying | uint256 | of tokens withdrawn |