Section 14 of 18
Core Lending Complete
Final Build
Submit your complete protocol and run the full test suite. Earn the "compound-v2-builder" badge on completion.
Key takeaway: This capstone section verifies that the cToken implementation and the Comptroller hooks compose correctly under realistic test scenarios: deposit, borrow, repay, redeem, liquidate, all flowing through
accountLiquidity. The 207-test Compound V2 suite is structured so this section's tests fail until every preceding function is implemented correctly. Passing here means the Risk Engine part of the protocol is fully integrated and ready for the liquidation flow.
What You Built
You just wrote the core lending protocol. Every function that powers supply, withdraw, borrow, and repay is now implemented. This is the engine that held billions of dollars in Compound V2 and was forked by dozens of protocols. Here is everything you built across the core contracts:
Your Complete Protocol
Sign up free — keep reading + earn 50 Lynx
Zealynx Academy is free. Track your progress, earn Lynx, and climb the leaderboard.
Sign up free to continueAlready have an account? Log in