fixup! Implement LoanPay (untested)

This commit is contained in:
Ed Hennis
2025-05-08 10:48:23 -04:00
parent cc8d36892a
commit b3c23de0ad
2 changed files with 1 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define XRPL_ASSERT ALWAYS_OR_UNREACHABLE
#define XRPL_ASSERT2(cond, location, message, ...) \
XRPL_ASSERT(cond, location##" : "##message)
XRPL_ASSERT(cond, std::string(location) + " : " + message)
// How to use the instrumentation macros:
//

View File

@@ -80,13 +80,9 @@ LoanPay::preclaim(PreclaimContext const& ctx)
auto const principalOutstanding = loanSle->at(sfPrincipalOutstanding);
TenthBips32 const interestRate{loanSle->at(sfInterestRate)};
auto const paymentInterval = loanSle->at(sfPaymentInterval);
auto const paymentRemaining = loanSle->at(sfPaymentRemaining);
TenthBips32 const lateInterestRate{loanSle->at(sfLateInterestRate)};
auto const latePaymentFee = loanSle->at(sfLatePaymentFee);
auto const prevPaymentDate = loanSle->at(sfPreviousPaymentDate);
auto const startDate = loanSle->at(sfStartDate);
auto const nextDueDate = loanSle->at(sfNextPaymentDueDate);
if (loanSle->at(sfBorrower) != account)
{