πVault
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.
depositDeposits assets into 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.
mintMints shares in the vault in exchange for assets.
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.
redeemRedeems shares from the vault in exchange for assets.
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.
withdrawWithdraws assets from the vault in exchange for shares.
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.
Last updated