Interfaces
ierc4626ierc4626
Functions
asset
Returns
Name | Type | Description |
---|---|---|
assetTokenAddress | address | The address of the asset token |
totalAssets
Returns
Name | Type | Description |
---|---|---|
totalManagedAssets | uint256 | The amount of eth controlled by the vault |
convertToShares
Parameters
Name | Type | Description |
---|---|---|
assets | uint256 | The amount of assets to convert to shares |
Returns
Name | Type | Description |
---|---|---|
shares | uint256 | The value of the given assets in shares |
convertToAssets
Parameters
Name | Type | Description |
---|---|---|
shares | uint256 | The amount of shares to convert to assets |
Returns
Name | Type | Description |
---|---|---|
assets | uint256 | The value of the given shares in assets |
maxDeposit
Parameters
Name | Type | Description |
---|---|---|
reciever | address | The address in question of who would be depositing, doesn't matter in this case |
Returns
Name | Type | Description |
---|---|---|
maxAssets | uint256 | The maximum amount of assets that can be deposited |
previewDeposit
Parameters
Name | Type | Description |
---|---|---|
assets | uint256 | The amount of assets that would be deposited |
Returns
Name | Type | Description |
---|---|---|
shares | uint256 | The amount of shares that would be minted, under ideal conditions only |
deposit
Parameters
Name | Type | Description |
---|---|---|
assets | uint256 | The amount of WETH which should be deposited |
receiver | address | The address user whom should recieve the mevEth out |
Returns
Name | Type | Description |
---|---|---|
shares | uint256 | The amount of shares minted |
maxMint
Parameters
Name | Type | Description |
---|---|---|
reciever | address | The address in question of who would be minting, doesn't matter in this case |
Returns
Name | Type | Description |
---|---|---|
maxShares | uint256 | The maximum amount of shares that can be minted |
previewMint
Parameters
Name | Type | Description |
---|---|---|
shares | uint256 | The amount of shares that would be minted |
Returns
Name | Type | Description |
---|---|---|
assets | uint256 | The amount of assets that would be required, under ideal conditions only |
mint
Parameters
Name | Type | Description |
---|---|---|
shares | uint256 | The amount of shares that should be minted |
receiver | address | The address user whom should recieve the mevEth out |
Returns
Name | Type | Description |
---|---|---|
assets | uint256 | The amount of assets deposited |
maxWithdraw
Parameters
Name | Type | Description |
---|---|---|
owner | address | The address in question of who would be withdrawing |
Returns
Name | Type | Description |
---|---|---|
maxAssets | uint256 | The maximum amount of assets that can be withdrawn |
previewWithdraw
Parameters
Name | Type | Description |
---|---|---|
assets | uint256 | The amount of assets that would be withdrawn |
Returns
Name | Type | Description |
---|---|---|
shares | uint256 | The amount of shares that would be burned, under ideal conditions only |
withdraw
Parameters
Name | Type | Description |
---|---|---|
assets | uint256 | The amount of assets that should be withdrawn |
receiver | address | The address user whom should recieve the mevEth out |
owner | address | The address of the owner of the mevEth |
Returns
Name | Type | Description |
---|---|---|
shares | uint256 | The amount of shares burned |
maxRedeem
Parameters
Name | Type | Description |
---|---|---|
owner | address | The address in question of who would be redeeming their shares |
Returns
Name | Type | Description |
---|---|---|
maxShares | uint256 | The maximum amount of shares they could redeem |
previewRedeem
Parameters
Name | Type | Description |
---|---|---|
shares | uint256 | The amount of shares that would be burned |
Returns
Name | Type | Description |
---|---|---|
assets | uint256 | The amount of assets that would be withdrawn, under ideal conditions only |
redeem
Parameters
Name | Type | Description |
---|---|---|
shares | uint256 | The amount of shares that should be burned |
receiver | address | The address user whom should recieve the wETH out |
owner | address | The address of the owner of the mevEth |
Returns
Name | Type | Description |
---|---|---|
assets | uint256 | The amount of assets withdrawn |
Events
Deposit
Emitted when a deposit is made, either through mint or deposit
Withdraw
Emitted when a withdrawal is made, either through redeem or withdraw