There are many different applications of Ethereum smart contracts. The most popular at the moment are cryptocurrencies (implemented as ERC20 tokens) and how to deeal with funds. This idea itself has various use cases
Probably the most common reason at the moment to lock funds is called “vesting.” Imagine that you have just raised a successful crypto fund and your company still holds a majority of tokens distributed between your team members. It would be beneficial to all parties involved to ensure that the tokens held by employees cannot be traded straightaway. If there are no controls in place, any given employee might take action by selling all their tokens, cashing out, and quitting the company.
Another application of locking funds could be to create a small fund or time-based savings account, i.e., one that prevents the owner from withdrawing any funds before a certain time in the future. (It could be particularly useful for addicted crypto traders in helping keep their ether/tokens intact.)
- Deploy TimeLockedWalletFactory.sol
- Run
npm i
- Run
npm run dev
- Access localhost:3000 to use