Technical requirements
For the convenience of explaining the concepts and features we will implement in this chapter, we have created the chapter12-start
branch in the GitHub repository of this book. In this branch, we implemented the sketch version of the asset pool smart contract in src/backend/contracts/AssetPool.sol
.
In AssetPool.sol
, we implemented three events for asset pool management: PoolInitialized
, PoolConfigUpdated
, and PoolInterestUpdated
, and five events for user operations: Deposit
, Withdraw
, Borrow
, Repay
, and Liquidate
. We also implemented a sketch version of the isAccountHealthy
function, which we will implement the full code of in the Managing the records in user ledgers section of this chapter.
Before implementing the fully functional AssetPool
smart contract, we highly encourage you to start coding based on the chapter12-start
branch. For the sketch version of the AssetPool
smart contract, please refer to https://github.com/PacktPublishing/Building-Full-stack...