📌Vault
Overview
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.
Methods
deposit
deposit
Deposits assets into the vault in exchange for shares.
Parameters
Parameter
Type
Description
assets
uint256
The amount of assets to deposit.
receiver
address
The address that will receive the shares.
Returns
Return
Type
Description
shares
uint256
The number of shares issued.
mint
mint
Mints shares in the vault in exchange for assets.
Parameters
Parameter
Type
Description
shares
uint256
The number of shares to mint.
receiver
address
The address that will receive the assets.
Returns
Return
Type
Description
assets
uint256
The number of assets deposited.
redeem
redeem
Redeems shares from the vault in exchange for assets.
Parameters
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.
Returns
Return
Type
Description
assets
uint256
The number of assets withdrawn.
withdraw
withdraw
Withdraws assets from the vault in exchange for shares.
Parameters
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.
Returns
Return
Type
Description
shares
uint256
The number of shares burned.
Last updated