This is the repository containing contracts source and tests for the article where we described different types of Vestings, their cons and pros:
If you want to play with the code, you can try running following commands:
- Npm i
- Npx hardhat compile
- Npx hardhat test
If you get an error "error:0308010C:digital envelope routines::unsupported", it means that you have a node version higher than 16. You should install a lesser version, for instance 16.15.1 (nvm use v16.15.1 if you have nvm)
If you get other errors, you can contact me by email: [email protected] and let me know about those errors.
Link to the article: https://redduck.medium.com/vesting-contract-implemented-in-3-different-ways-bdd7e7be3fa