mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 11:35:53 +00:00
Fix build errors
This commit is contained in:
@@ -166,7 +166,6 @@ computePaymentComponents(
|
|||||||
"ripple::detail::computePaymentComponents",
|
"ripple::detail::computePaymentComponents",
|
||||||
"last payment is complete");
|
"last payment is complete");
|
||||||
|
|
||||||
Number const interest = totalValueOutstanding - principalOutstanding;
|
|
||||||
return {
|
return {
|
||||||
.rawInterest = rawInterest,
|
.rawInterest = rawInterest,
|
||||||
.rawPrincipal = referencePrincipal,
|
.rawPrincipal = referencePrincipal,
|
||||||
@@ -830,7 +829,6 @@ loanMakePayment(
|
|||||||
auto totalValueOutstandingProxy = loan->at(sfTotalValueOutstanding);
|
auto totalValueOutstandingProxy = loan->at(sfTotalValueOutstanding);
|
||||||
auto interestOwedProxy = loan->at(sfInterestOwed);
|
auto interestOwedProxy = loan->at(sfInterestOwed);
|
||||||
auto referencePrincipalProxy = loan->at(sfReferencePrincipal);
|
auto referencePrincipalProxy = loan->at(sfReferencePrincipal);
|
||||||
bool const allowOverpayment = loan->isFlag(lsfLoanOverpayment);
|
|
||||||
|
|
||||||
TenthBips32 const interestRate{loan->at(sfInterestRate)};
|
TenthBips32 const interestRate{loan->at(sfInterestRate)};
|
||||||
TenthBips32 const lateInterestRate{loan->at(sfLateInterestRate)};
|
TenthBips32 const lateInterestRate{loan->at(sfLateInterestRate)};
|
||||||
@@ -1035,7 +1033,7 @@ loanMakePayment(
|
|||||||
// -------------------------------------------------------------
|
// -------------------------------------------------------------
|
||||||
// overpayment handling
|
// overpayment handling
|
||||||
Number overpaymentInterestPortion = 0;
|
Number overpaymentInterestPortion = 0;
|
||||||
if (allowOverpayment)
|
if (loan->isFlag(lsfLoanOverpayment))
|
||||||
{
|
{
|
||||||
Number const overpayment = std::min(
|
Number const overpayment = std::min(
|
||||||
principalOutstandingProxy.value(),
|
principalOutstandingProxy.value(),
|
||||||
@@ -1068,8 +1066,8 @@ loanMakePayment(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
loanValueChange =
|
totalParts.valueChange += (newTotalInterest - totalInterestOutstanding) +
|
||||||
(newInterest - totalInterestOutstanding) + overpaymentInterestPortion;
|
overpaymentInterestPortion;
|
||||||
|
|
||||||
// Check the final results are rounded, to double-check that the
|
// Check the final results are rounded, to double-check that the
|
||||||
// intermediate steps were rounded.
|
// intermediate steps were rounded.
|
||||||
|
|||||||
Reference in New Issue
Block a user