feat(financial): LTC 70%/equity 30% норматив МКД РФ в модели финансирования #1895
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#1895
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/ltc-equity-financing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Проблема
_compute_financingпокрывал 100 % кассового разрыва кредитом, что завышалоtotal_interest_rubи занижалоnet_profit_after_financing_rub. Реальная модель проектного финансирования МКД РФ: банк ≈ 65–75 % (LTC), equity инвестора — остаток.Изменения
Backend —
financial.py_LOAN_TO_COST_RATIO = 0.70(медиана 65–75 % норматива)._compute_financing(operating_cf, annual_rate, ltc_ratio=1.0)— новый параметр с дефолтом1.0(BC для прямых вызовов в тестах).debt += -cf * ltc_ratioвместоdebt += -cf._LOAN_TO_COST_RATIO.Backend —
test_financial_dcf.pytest_financing_ltc_reduces_debt_vs_full_coverage— проверяет, чтоpeak_debt(0.70) ≈ 0.70 × peak_debt(1.0)для fixture с фронт-загруженными оттоками.test_compute_financial_uses_ltc_ratio— интеграционный тест:0 < peak_debt < costиnet_profit_after = net_profit - total_interest.Frontend —
ptica-adapt.tsfinancing_is_simplifiedуточнён: «70 % — банк (кредитная линия, норматив МКД РФ), 30 % — собственные средства инвестора (без процентов)». Убраны англицизмы.Frontend —
ptica-adapt.honesty.test.tstoContain("кредитная линия")+toContain("собственные средства").Эффект
Для типового comfort/high_rise:
total_interestснижается ≈ на 30 %,net_profit_after_financing_rubрастёт соответственно. Например, проект с разрывом 2.5 млрд ₽: проценты ~520 → ~360 млн ₽.Тесты
tests/services/generative/test_financial_dcf.py)ptica-adapt.honesty.test.ts)