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