Build DeFi on Ethereum end-to-end — AMMs, lending, stables, oracles, derivatives, vaults, restaking. Method-first, ships protocol-grade code.
This is the course for builders who want to ship real DeFi on Ethereum. You'll learn the math behind AMMs and concentrated liquidity, write production-grade lending protocols with liquidation engines, design stablecoins with peg controllers, integrate oracles defensively, build perpetuals and options primitives, ship ERC-4626 vaults, navigate the EigenLayer restaking stack, audit your own code with realistic threat models, and bring a protocol to market with thoughtful tokenomics and governance. Five capstones (you pick one) let you actually ship a DeFi primitive: a concentrated-liquidity AMM with governance, an over-collateralized lending market, a PI-controlled stablecoin, a funding-rate perp, or an auto-compounding multi-strategy vault. Every module ships real Solidity. Smart contracts shown — minimal vaults, AMMs, CDPs, lending markets, perps, oracle wrappers, restaking adapters — are runnable starting points you compile, test, and extend.
Built by Lakshya Kumar
Paste this into any AI chat. Fill in the bracketed parts with your context — you'll get back a straight answer on whether this belongs on your plate.
We grant free access case-by-case — students, career-switchers, builders on a tight budget. Sign in to send us a note.
Sign in to applyComplete all modules, then submit the required number of capstone projects. Each must earn a passing rating from an admin reviewer.
Build a Uniswap-v3-lite implementation in Solidity: tick math, fee tiers, position NFTs, fee growth accumulator, and an on-chain governance module that controls parameter changes (new fee tiers, protocol-fee toggle, fee distribution). Deploy to a testnet, seed two markets, run a 24h paper-trading session, and produce a one-page report on capital efficiency vs a V2-style baseline.
I am learning to build production-grade DeFi protocols on Ethereum — AMMs (V2/V3, concentrated liquidity), lending markets (Aave/Compound style), stablecoins (over-collateralized, algorithmic, hybrid), oracles (Chainlink, Pyth, TWAP), derivatives (perps, options), yield aggregation (ERC-4626 vaults), restaking (EigenLayer, LRTs), DeFi risk and audit patterns, and DeFi GTM. Help me understand the actual mechanics with reference to real contracts (Uniswap, Aave, MakerDAO), real exploits, and real production patterns.
Implement a single-asset Aave-style lending market: deposit, borrow, repay, withdraw, and liquidation engine. Use a kinked interest rate model with utilization-based borrow APR. Integrate Chainlink for prices with staleness guards. Build a keeper bot that liquidates underwater positions. Deploy to a testnet and stress-test with 1000 simulated borrowers under a 30% price drop.
Build a RAI-style stablecoin: PI controller for the redemption rate, over-collateralized minting (use ETH or stETH), liquidation auctions, and a savings rate. Demonstrate price stabilization in a simulated market with random demand shocks. Include the controller-tuning analysis: how were Kp and Ki chosen, and what is the stability region? Deploy to a testnet with a working frontend.
Implement a single-market perpetual DEX in Solidity: position open/close, margin management, funding rate settlement, mark-price computation (oracle + smoothing), maintenance margin enforcement, and a liquidation engine with insurance fund. Integrate Chainlink as index and a TWAP from a CL-AMM as cross-check. Run a 24-hour paper trading session and produce reconciliation that proves no PnL drift across thousands of trades.
Build an ERC-4626 vault that rotates capital across at least three DeFi strategies (e.g., Aave supply, Compound supply, Uniswap V3 LP). Implement strategy weights driven by realized APY observation; auto-compound rewards; expose pause + emergency-exit; include access-controlled strategy switching with timelock. Full test coverage including invariant tests against share-price drift and donation attacks.
Reference for lending protocol design. Used in M3.