lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 447290e 04/25: Move an assertion; rewrite and


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 447290e 04/25: Move an assertion; rewrite and duplicate its comment
Date: Wed, 24 Feb 2021 19:00:51 -0500 (EST)

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

    Move an assertion; rewrite and duplicate its comment
    
    Move an assertion outside a block of code that's about to be moved.
    Its (improved) comment is wanted both within and outside that block.
---
 ihs_basicval.cpp | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/ihs_basicval.cpp b/ihs_basicval.cpp
index cb3aa48..2477086 100644
--- a/ihs_basicval.cpp
+++ b/ihs_basicval.cpp
@@ -420,6 +420,15 @@ void BasicValues::Init7702()
     // (optionally) rounding monthly COI rates.
     MlyDcvqc = round_coi_rate()(Mly7702qc);
 
+    // If lmi someday implements VLR, then the current VLR rate on
+    // the issue date constitutes a short-term guarantee that must be
+    // reflected in the 7702 interest rates (excluding the GLP rate).
+    // Until then, assert that VLR is not used, or cannot be used:
+    LMI_ASSERT
+        (  false == database().query<bool>(DB_AllowVlr)
+        || mce_variable_loan_rate != yare_input_.LoanRateType
+        );
+
     // Monthly guar net int for 7702 is
     //   greater of {iglp(), igsp()} and annual guar int rate
     //   less 7702 spread
@@ -460,13 +469,8 @@ void BasicValues::Init7702()
         }
 
     // If lmi someday implements VLR, then the current VLR rate on
-    // the issue date constitutes a short-term guarantee that must
-    // be reflected here. Until then, assert that VLR is not used,
-    // or cannot be used:
-    LMI_ASSERT
-        (  false == database().query<bool>(DB_AllowVlr)
-        || mce_variable_loan_rate != yare_input_.LoanRateType
-        );
+    // the issue date constitutes a short-term guarantee that must be
+    // reflected in the 7702 interest rates (excluding the GLP rate).
 
     Mly7702iGlp.assign(Length, 0.0);
     assign



reply via email to

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