Skip to content

feat: add Module 8 — DeFi 深度解析 (5 lessons)#59

Merged
beihaili merged 1 commit into
mainfrom
feat/module-8-defi-deep-dive
Mar 27, 2026
Merged

feat: add Module 8 — DeFi 深度解析 (5 lessons)#59
beihaili merged 1 commit into
mainfrom
feat/module-8-defi-deep-dive

Conversation

@beihaili

Copy link
Copy Markdown
Owner

Summary

  • New Module 8: DeFi 深度解析 with 5 complete lessons covering core DeFi concepts
  • Adds courseData entry (module-8), badge data (defi-expert), sync-content config, and quiz data (25 questions)
  • Updates test expectations from 7 to 8 modules
  • All 116 tests passing

Lessons

  1. DeFi 核心概念与架构 — 传统金融 vs DeFi 对比、可组合性(Money Legos)、TVL、DeFi 技术栈
  2. AMM 与去中心化交易所 — 恒定乘积公式 x*y=k、流动性池、滑点、无常损失、Uniswap V2 vs V3
  3. 借贷协议原理 — Aave/Compound 机制、超额抵押、健康因子、清算、利率模型、闪电贷
  4. 稳定币全景 — USDT/USDC/DAI 机制、算法稳定币、UST/LUNA 崩盘案例、MiCA 监管
  5. DeFi 风险与安全 — 智能合约漏洞、闪电贷攻击、预言机操纵、Rug Pull、安全评估清单

Changes

  • zh/DeFiDeepDive/ — 5 lesson directories with full Chinese content (300-500 lines each)
  • src/config/courseData.js — Added module-8 with Landmark icon and 5 lessons
  • src/features/badges/badgeData.js — Added module-8 "DeFi Expert" badge (Epic rarity)
  • src/features/quiz/quizData.js — Added 25 quiz questions (5 per lesson)
  • scripts/sync-content.mjs — Added DeFiDeepDive to SOURCE_FOLDERS
  • src/config/__tests__/courseData.test.js — Updated module count from 7 to 8

Test plan

  • npm test passes (116 tests, 13 test files)
  • npm run dev — Module 8 appears on dashboard
  • Each lesson loads and renders correctly
  • Badge unlocks after completing all 5 lessons
  • Quiz questions display correctly for each lesson

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown

📦 构建成功! 在合并到 main 分支后将自动部署到生产环境。

New module covering DeFi core concepts, AMM/DEX mechanics,
lending protocols, stablecoins, and DeFi risks/security.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@beihaili
beihaili force-pushed the feat/module-8-defi-deep-dive branch from 593c95e to b2f0efc Compare March 27, 2026 01:55
@beihaili
beihaili merged commit 53e1132 into main Mar 27, 2026
1 of 2 checks passed
@github-actions

Copy link
Copy Markdown

📦 构建成功! 在合并到 main 分支后将自动部署到生产环境。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant