⚠️ ️WORK IN PROGRESS⚠️
This is a minimal implementation of a ERC-4626(Vault).
This SimpleVault accepts an ERC20 token and issues shares with respect to it.
80% of the deposited token is split equally and supplied between Aave Pool and Morpho Vault.
- Deposit funds into Aave and Morpho on each deposit into the vaults.
- Tenderly Virtual Testnet setup.
- Logic for calculating total assets in the vaults.
- Logic to implement a withdraw mechanism which first use the unallocated tokens and then withdraw funds from AAVE and Morpho. [Reallocation]
- Unit test with multiple users.
- Fuzz tests.
- Invariant tests.
Reference:
