Skip to content

megabyte0x/vault

Repository files navigation

Vault

⚠️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.

TODO

  • 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.

Current Coverage

Current coverage

Reference:

About

Simple Vault Implementation

Resources

Stars

Watchers

Forks