// Equity Flow: the contract term model. // // This is the structural description of the loan that the invariant tests // (tests/invariants.test.js) read. The site copy, the closing-package table, // and the investor cash-flow model all take their shape from here, so a change // that would turn the loan into something other than a Reg Z reverse mortgage // (12 CFR 1026.33(a)) has to change this file first, and the tests fail. // // Plain ESM with no imports so the browser and Node load it alike. export const CONTRACT = Object.freeze({ instrument: 'closed-end loan, recorded second-lien deed of trust', reg_z_classification: '12 CFR 1026.33(a) reverse mortgage', // Security: the borrower's principal dwelling, nothing else. secured_by: 'principal_dwelling', // Recourse: none. Repayment is capped at net sale proceeds after the senior // lien and costs of sale. No deficiency against the borrower or the estate. recourse: false, repayment_cap: 'net_sale_proceeds', // Maturity: an occupancy event only. There is no date on which the loan // becomes due, no balloon, and no scheduled payment of any kind. maturity: 'occupancy_event', maturity_date: null, balloon: false, required_periodic_payment: false, repayable_at: Object.freeze(['sale', 'permanent_move_out', 'death']), workout_window_months: 12, // Prepayment: any amount, any month, no penalty. prepayment_penalty: false, // Deposits are a right, never an obligation. Only the borrower can stop them. borrower_may_stop_deposits: true, lender_may_stop_deposits: false, // The HECM offer at 62 (section 1): a commitment on the lender side only. // The borrower is never required to take it, and 62 is not a due date. hecm_offer_at_62: Object.freeze({ lender_commitment: true, borrower_obligation: false, condition: 'home value and combined balance fit the HECM limits at the 62nd birthday, as sized at origination' }), // Occupancy. One definition, referenced everywhere (section 8.1). occupancy: Object.freeze({ temporary_absence_months: 12, permitted: Object.freeze([ 'rent a room', 'host family', 'renovate', 'travel', 'move out for up to 12 months for care, work, or family' ]), permanent_move_out_definition: 'The borrower has not occupied the home as a principal dwelling for more than 12 consecutive months. Moving out and renting the whole house is a permanent move-out under the contract once the 12 months pass.' }), // Senior lien: rate-and-term refinances get a signed subordination. subordination_business_days: 10, // No arbitration clause. arbitration_clause: false }); // A short, machine-checkable summary of the Reg Z reverse-mortgage elements. export function isRegZReverseMortgage(c = CONTRACT) { return c.recourse === false && c.secured_by === 'principal_dwelling' && c.maturity === 'occupancy_event' && c.maturity_date === null && c.balloon === false && c.required_periodic_payment === false && ['sale', 'permanent_move_out', 'death'].every(e => c.repayable_at.includes(e)) && c.hecm_offer_at_62.borrower_obligation === false; }