Skip to main content

ITokemakEthPool

Functions

deposit

function deposit(
uint256 amount
) external

Parameters

NameTypeDescription
amountuint256

withdraw

function withdraw(
uint256 requestedAmount,
bool asEth
) external

Parameters

NameTypeDescription
requestedAmountuint256
asEthbool

EthTokemakPCVDeposit

Functions

constructor

function constructor(
address _core,
address _pool,
address _rewards
) public

Tokemak ETH PCV Deposit constructor

Parameters

NameTypeDescription
_coreaddressFei Core for reference
_pooladdressTokemak pool to deposit in
_rewardsaddressTokemak 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

NameTypeDescription
toaddressthe address to send PCV to
amountUnderlyinguint256of tokens withdrawn