--- title: Home tags: [mortgagefi, moc] type: moc status: stable updated: 2026-06-14 --- # 🌾 MortgageFi β€” Documentation Vault > [!info] This is an [Obsidian](https://obsidian.md) vault > Open the `docs/` folder as a vault to get backlinks, the graph view, and live `[[wikilinks]]`. Every note carries YAML frontmatter (`title`, `tags`, `type`, `status`, `updated`) so you can query it with Dataview. MortgageFi is a decentralized mortgage-lending platform. Users deposit ERC-721 collateral into audited debt vaults, borrow stablecoins against crypto collateral (cbBTC, WETH, WBTC), pay down debt on-chain to extend liquidation timers, and receive email/push alerts before liquidation. ## πŸ—ΊοΈ Map of Content ### Architecture - [[Architecture]] β€” system overview, component diagrams, data flows - [[API Reference]] β€” REST endpoints for nftcache, the scheduler, and ntfy ### Operations - [[Deployment]] β€” Docker Compose, Vercel, and standalone deploys - [[Development]] β€” local setup, adding chains, testing, troubleshooting - [[Migration Notes]] β€” library/version upgrade notes & rollback plan - [[Alert Changes]] β€” notification & scheduling behaviour history ### Audits - [[Security Audit]] β€” findings, severities, remediations - [[Performance Audit]] β€” bottlenecks and optimization opportunities - [[Project Audit 2026-06]] β€” current full-project health review ## 🧭 Architecture at a glance ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Next.js │────▢│ Scheduler API │────▢│ ntfy β”‚ β”‚ Frontend β”‚ β”‚ (Vercel + Redis)β”‚ β”‚(push/email) β”‚ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ nftcache │────▢│ Blockchain β”‚ β”‚(NFT scanner)β”‚ β”‚(Base/Arb) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` ## 🧱 Tech stack | Component | Technology | |-----------|-----------| | Frontend | Next.js 16, React 19, TypeScript, Tailwind CSS 4, wagmi 3 | | NFT Cache | Go 1.22, BadgerDB | | Scheduler | Next.js API Routes, Upstash Redis | | Notifications | ntfy (self-hosted) | | Proxy | nginx | | Orchestration | Docker Compose | ## 🏷️ Tag index `#mortgagefi` Β· `#architecture` Β· `#api` Β· `#ops` Β· `#audit` Β· `#security` Β· `#performance` ## Related [[Architecture]] Β· [[API Reference]] Β· [[Deployment]] Β· [[Development]] Β· [[Security Audit]] Β· [[Performance Audit]] Β· [[Project Audit 2026-06]]