Labs/DeFi Lending & Borrowing Protocol
Advanced
DeFiNFT Certificate on Completion

DeFi Lending & Borrowing Protocol

Fork Aave and run your own lending protocol β€” from scratch

5 hrs 1,800 XP 5 modules⛓️ Polygon Amoy (testnet)

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

  1. 1
    Lending protocol architecturelesson

    Interest rate models, health factor, liquidation threshold, oracle dependency.

    30 min
  2. 2
    Deploy lending core + price oracledeploy

    Chainlink mock feed, collateral registry, interest accrual.

    50 min
  3. 3
    Supply, borrow, simulate interestsimulation

    Deposit flow, borrow flow, utilization rate, APY calculation.

    40 min
  4. 4
    Trigger and execute a liquidationsimulation

    Price drop simulation, health factor breach, liquidator economics.

    35 min
  5. 5
    DeFi 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

Aave V3 ReferenceHardhatChainlink Price FeedsOpenZeppelin
πŸ…

Ready to build?

Complete all 5 modules and earn your NFT certificate. Earn 1,800 XP on completion.

Start Lab β†’Register Free First

πŸ… 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