mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
fixup! Implement LoanPay (untested)
This commit is contained in:
@@ -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:
|
||||
//
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user