Interfaces

ierc4626

ierc4626

IERC4626 Git Source

Functions

asset

function asset() external view returns (address assetTokenAddress);

Returns

NameTypeDescription
assetTokenAddressaddressThe address of the asset token

totalAssets

function totalAssets() external view returns (uint256 totalManagedAssets);

Returns

NameTypeDescription
totalManagedAssetsuint256The amount of eth controlled by the vault

convertToShares

function convertToShares(uint256 assets) external view returns (uint256 shares);

Parameters

NameTypeDescription
assetsuint256The amount of assets to convert to shares

Returns

NameTypeDescription
sharesuint256The value of the given assets in shares

convertToAssets

function convertToAssets(uint256 shares) external view returns (uint256 assets);

Parameters

NameTypeDescription
sharesuint256The amount of shares to convert to assets

Returns

NameTypeDescription
assetsuint256The value of the given shares in assets

maxDeposit

function maxDeposit(address reciever) external view returns (uint256 maxAssets);

Parameters

NameTypeDescription
recieveraddressThe address in question of who would be depositing, doesn't matter in this case

Returns

NameTypeDescription
maxAssetsuint256The maximum amount of assets that can be deposited

previewDeposit

function previewDeposit(uint256 assets) external view returns (uint256 shares);

Parameters

NameTypeDescription
assetsuint256The amount of assets that would be deposited

Returns

NameTypeDescription
sharesuint256The amount of shares that would be minted, under ideal conditions only

deposit

function deposit(uint256 assets, address receiver) external payable returns (uint256 shares);

Parameters

NameTypeDescription
assetsuint256The amount of WETH which should be deposited
receiveraddressThe address user whom should recieve the mevEth out

Returns

NameTypeDescription
sharesuint256The amount of shares minted

maxMint

function maxMint(address reciever) external view returns (uint256 maxShares);

Parameters

NameTypeDescription
recieveraddressThe address in question of who would be minting, doesn't matter in this case

Returns

NameTypeDescription
maxSharesuint256The maximum amount of shares that can be minted

previewMint

function previewMint(uint256 shares) external view returns (uint256 assets);

Parameters

NameTypeDescription
sharesuint256The amount of shares that would be minted

Returns

NameTypeDescription
assetsuint256The amount of assets that would be required, under ideal conditions only

mint

function mint(uint256 shares, address receiver) external payable returns (uint256 assets);

Parameters

NameTypeDescription
sharesuint256The amount of shares that should be minted
receiveraddressThe address user whom should recieve the mevEth out

Returns

NameTypeDescription
assetsuint256The amount of assets deposited

maxWithdraw

function maxWithdraw(address owner) external view returns (uint256 maxAssets);

Parameters

NameTypeDescription
owneraddressThe address in question of who would be withdrawing

Returns

NameTypeDescription
maxAssetsuint256The maximum amount of assets that can be withdrawn

previewWithdraw

function previewWithdraw(uint256 assets) external view returns (uint256 shares);

Parameters

NameTypeDescription
assetsuint256The amount of assets that would be withdrawn

Returns

NameTypeDescription
sharesuint256The amount of shares that would be burned, under ideal conditions only

withdraw

function withdraw(uint256 assets, address receiver, address owner) external returns (uint256 shares);

Parameters

NameTypeDescription
assetsuint256The amount of assets that should be withdrawn
receiveraddressThe address user whom should recieve the mevEth out
owneraddressThe address of the owner of the mevEth

Returns

NameTypeDescription
sharesuint256The amount of shares burned

maxRedeem

function maxRedeem(address owner) external view returns (uint256 maxShares);

Parameters

NameTypeDescription
owneraddressThe address in question of who would be redeeming their shares

Returns

NameTypeDescription
maxSharesuint256The maximum amount of shares they could redeem

previewRedeem

function previewRedeem(uint256 shares) external view returns (uint256 assets);

Parameters

NameTypeDescription
sharesuint256The amount of shares that would be burned

Returns

NameTypeDescription
assetsuint256The amount of assets that would be withdrawn, under ideal conditions only

redeem

function redeem(uint256 shares, address receiver, address owner) external returns (uint256 assets);

Parameters

NameTypeDescription
sharesuint256The amount of shares that should be burned
receiveraddressThe address user whom should recieve the wETH out
owneraddressThe address of the owner of the mevEth

Returns

NameTypeDescription
assetsuint256The amount of assets withdrawn

Events

Deposit

Emitted when a deposit is made, either through mint or deposit

event Deposit(address indexed caller, address indexed owner, uint256 assets, uint256 shares);

Withdraw

Emitted when a withdrawal is made, either through redeem or withdraw

event Withdraw(address indexed caller, address indexed receiver, address indexed owner, uint256 assets, uint256 shares);