Functions

constructor

    function constructor() public;

receive

    function receive() external;

Allows for payments from the WETH contract.

refreshAllowance

    function refreshAllowance(address alchemist) external;

Refreshes the wrapped ethereum ERC20 approval for an alchemist contract.

Parameters:

depositUnderlying

    function depositUnderlying(
        address alchemist,
        address yieldToken,
        uint256 amount,
        address recipient,
        uint256 minimumAmountOut
    ) external;

Takes ethereum, converts it to wrapped ethereum, and then deposits it into an alchemist.

See IAlchemistV2Actions.depositUnderlying for more details.

Parameters:

withdrawUnderlying

    function withdrawUnderlying(
        address alchemist,
        address yieldToken,
        uint256 shares,
        address recipient,
        uint256 minimumAmountOut
    ) external;

Withdraws a wrapped ethereum based yield token from an alchemist, converts it to ethereum, and then transfers it to the recipient.

A withdraw approval on the alchemist is required for this call to succeed.

See IAlchemistV2Actions.withdrawUnderlying for more details.

Parameters:

_onlyWhitelisted

    function _onlyWhitelisted() internal;

Checks the whitelist for msg.sender.

Reverts if msg.sender is not in the whitelist.

Last updated