📌Vault
Last updated
Last updated
The Vault
contract extends the ERC4626Fees contract to manage a financial vault with entry fees. It enables depositing and withdrawing assets in exchange for shares, incorporating an entry fee mechanism.
deposit
Deposits assets into the vault in exchange for shares.
mint
Mints shares in the vault in exchange for assets.
redeem
Redeems shares from the vault in exchange for assets.
withdraw
Withdraws assets from the vault in exchange for shares.
Parameter
Type
Description
assets
uint256
The amount of assets to deposit.
receiver
address
The address that will receive the shares.
Return
Type
Description
shares
uint256
The number of shares issued.
Parameter
Type
Description
shares
uint256
The number of shares to mint.
receiver
address
The address that will receive the assets.
Return
Type
Description
assets
uint256
The number of assets deposited.
Parameter
Type
Description
shares
uint256
The number of shares to redeem.
receiver
address
The address that will receive the assets.
owner
address
The address of the owner of the shares.
Return
Type
Description
assets
uint256
The number of assets withdrawn.
Parameter
Type
Description
assets
uint256
The amount of assets to withdraw.
receiver
address
The address that will receive the assets.
owner
address
The address of the owner of the assets.
Return
Type
Description
shares
uint256
The number of shares burned.