Skip to main content

MockTokemakEthPool

Functions

constructor

function constructor(
address _weth
) public

Parameters

NameTypeDescription
_wethaddress

receive

function receive() external

underlyer

function underlyer() external returns (address)

requestWithdrawal

function requestWithdrawal(
uint256 amount
) external

Parameters

NameTypeDescription
amountuint256

deposit

function deposit(
uint256 amount
) external

Parameters

NameTypeDescription
amountuint256

withdraw

function withdraw(
uint256 requestedAmount,
bool asEth
) external

Parameters

NameTypeDescription
requestedAmountuint256
asEthbool