Lesson 2 is for the creation of a basic vault (details here) that allows for the deposit and withdrawal of an ERC20 token specified in the vault's constructor.
Users may rdeposit the ERC20 token into the vault as long as they themselves hold it and withdraw an amount no greater than the sum of all tokens they've put in.
This implementation uses Foundry and all functions were locally tested.
# Clone this project
$ git clone https://github.com/catellaTech/BASIC-VAULT
# Access
$ cd BASIC-VAULT
# Install dependencies
$ forge install
- Follow the instructions to install Foundry.
- $
forge build
- $
forge test
- Solidity
- Foundry