Summary
In this chapter, you learned the characteristics of a decentralized crypto loan. We also went through the personas involved in a crypto loan system and the architecture of the crypto loan smart contracts. We also introduced every smart contract we will implement for a crypto loan and how these smart contracts interact with each other. After that, we explored how interest rates are calculated and dived into the interest rate model.
We also implemented three smart contracts for a crypto loan, PoolConfiguration
, AssetPoolShare
, and AssetPoolShareDeployer
, in this chapter. These smart contracts are the cornerstones of the whole crypto loan system. Finally, we went through one of the most popular lending protocols, Aave, to aid our understanding of the concepts demonstrated in this chapter.
In the next chapter, we will implement the asset pool smart contract using these cornerstones. The asset pool smart contract implements all the business logic for user operations and a...