DeFi Lending & Borrowing Protocol
Fork Aave and run your own lending protocol β from scratch
About This Lab
Deploy a lending protocol, supply collateral, borrow against it, set liquidation thresholds, and simulate a liquidation event. You'll understand exactly how Aave, Compound, and every other lending protocol works mechanically.
Lab Modules
- 1Lending protocol architecturelesson
Interest rate models, health factor, liquidation threshold, oracle dependency.
30 min - 2Deploy lending core + price oracledeploy
Chainlink mock feed, collateral registry, interest accrual.
50 min - 3Supply, borrow, simulate interestsimulation
Deposit flow, borrow flow, utilization rate, APY calculation.
40 min - 4Trigger and execute a liquidationsimulation
Price drop simulation, health factor breach, liquidator economics.
35 min - 5DeFi lending quizquiz
Overcollateralization, oracle risk, interest models.
15 min
What You'll Build
- Deploy a functioning lending protocol with price oracle integration
- Model collateralization ratios, health factors, and liquidation
- Simulate a liquidation event end-to-end
- Understand interest rate models (stable vs variable)
Tools & Stack
Ready to build?
Complete all 5 modules and earn your NFT certificate. Earn 1,800 XP on completion.
Start Lab βRegister Free FirstPrerequisites
π NFT Certificate
On completion, your certificate is anchored to IPFS via Unykorn and issued as an on-chain NFT badge β permanently verifiable proof of your build.
Verify on Unykorn