lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master ad538f7 07/14: Fix defect introduced 20210314


From: Greg Chicares
Subject: [lmi-commits] [lmi] master ad538f7 07/14: Fix defect introduced 20210314T2207Z: wrong VLR
Date: Thu, 1 Apr 2021 18:15:17 -0400 (EDT)

branch: master
commit ad538f7f00c7ff13cc50dfb9a2f56020ba3ba2f5
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Fix defect introduced 20210314T2207Z: wrong VLR
    
    Commit d831ddf65e68ab of 20210314T2207Z set VLR for 7702 purposes to
    DB_MaxVlrRate, which is actually a state "usury" limit. For "sample"
    products in TX, this induced a double-digit 7702 rate. Production
    products were unaffected because they all set DB_AllowVlr to 'false',
    but manually toggling that value in their databases would have had the
    same effect.
---
 i7702_init.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/i7702_init.cpp b/i7702_init.cpp
index 19061b2..1d65b1a 100644
--- a/i7702_init.cpp
+++ b/i7702_init.cpp
@@ -85,8 +85,7 @@ i7702::i7702
     std::vector<double> fixed_loan_rate;
     database.query_into(DB_FixedLoanRate, fixed_loan_rate);
     // This isn't the actual rate--lmi doesn't yet implement VLR.
-    std::vector<double> variable_loan_rate;
-    database.query_into(DB_MaxVlrRate, variable_loan_rate);
+    std::vector<double> variable_loan_rate(length_, 0.03);
     std::vector<double> guar_loan_spread;
     database.query_into(DB_GuarRegLoanSpread, guar_loan_spread);
     assign(Bflr_, fixed_loan_rate    - guar_loan_spread);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]