Writing a Lending Vault Smart Contract
In this chapter, you’re going to learn about two concepts, which are lending and vaults. First, you’re going to learn about vaults. A vault is a place where people store their money and can take it back if they want to. The vault smart contract has a standard you can follow. After learning about vaults, you will learn about lending, where users can borrow assets from the lending smart contract and repay it with interest. Then, you will combine these two smart contracts into one lending vault smart contract. After learning how to write a lending vault smart contract, you will understand two of the most important and popular protocols in blockchain, which are lending and vaults.
The following topics will be covered in this chapter:
- Understanding vaults
- The ERC-4626 standard
- Lending