rspace-online/modules/rlending
Jeff Emmett 7a1ffbe635 feat(rlending): extract mortgage simulator + /api/mortgage from rFlows
- New modules/rlending/ with moved folk-mortgage-simulator, mortgage-engine,
  mortgage-types; page route at / renders the simulator
- /api/mortgage/rates + /api/mortgage/positions (GET+POST) moved to rLending;
  Aave v3 live rate lookup unchanged
- FlowsDoc schema stays in rFlows (mortgagePositions + reinvestmentPositions fields);
  rLending reads/writes via imported ensureFlowsDoc + flowsDocId + FlowsDoc types
- rFlows: export ensureFlowsDoc (renamed from ensureDoc); drop mortgage API routes,
  /mortgage page route, mortgageScripts, seed block, subPageInfos mortgage entry
- folk-flows-app: mortgage fetches now target /rlending/api/mortgage/* via a derived
  lendingBase (keeps the rPool dashboard in rFlows working unchanged)
- Display: rLending (🏦) added to module-display, rstack-app-switcher (Commerce),
  rstack-tab-bar (Funding & Commerce), e2e/fixtures/module-list
- Vite: folk-mortgage-simulator build repointed to modules/rlending/ with aliases
  resolving to modules/rlending/lib/mortgage-{types,engine}
2026-04-18 14:42:36 -04:00
..
components feat(rlending): extract mortgage simulator + /api/mortgage from rFlows 2026-04-18 14:42:36 -04:00
lib feat(rlending): extract mortgage simulator + /api/mortgage from rFlows 2026-04-18 14:42:36 -04:00
landing.ts feat(rlending): extract mortgage simulator + /api/mortgage from rFlows 2026-04-18 14:42:36 -04:00
mod.ts feat(rlending): extract mortgage simulator + /api/mortgage from rFlows 2026-04-18 14:42:36 -04:00