Functions
constructor
receive
Allows for payments from the WETH contract.
refreshAllowance
Refreshes the wrapped ethereum ERC20 approval for an alchemist contract.
Parameters:
Name | Type | Description |
---|---|---|
| address | The address of the alchemist to refresh the allowance for. |
depositUnderlying
Takes ethereum, converts it to wrapped ethereum, and then deposits it into an alchemist.
See IAlchemistV2Actions.depositUnderlying for more details.
Parameters:
Name | Type | Description |
---|---|---|
| address | The address of the alchemist to deposit wrapped ethereum into. |
| address | The yield token to deposit the wrapped ethereum as. |
| uint256 | The amount of ethereum to deposit. |
| address | The address which will receive the deposited yield tokens. |
| uint256 | The minimum amount of yield tokens that are expected to be deposited to |
withdrawUnderlying
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:
Name | Type | Description |
---|---|---|
| address | The address of the alchemist to withdraw wrapped ethereum from. |
| address | The address of the yield token to withdraw. |
| uint256 | The amount of shares to withdraw. |
| address | The address which will receive the ethereum. |
| uint256 | The minimum amount of underlying tokens that are expected to be withdrawn to |
_onlyWhitelisted
Checks the whitelist for msg.sender.
Reverts if msg.sender is not in the whitelist.
Last updated