xrpld
Loading...
Searching...
No Matches
xrpl::ValidLoan Class Reference

Invariants: Loans are internally consistent. More...

#include <LoanInvariant.h>

Collaboration diagram for xrpl::ValidLoan:

Public Member Functions

void visitEntry (bool, SLE::const_ref, SLE::const_ref)
bool finalize (STTx const &, TER const, XRPAmount const, ReadView const &, beast::Journal const &)

Private Attributes

std::vector< std::pair< SLE::const_pointer, SLE::const_pointer > > loans_

Detailed Description

Invariants: Loans are internally consistent.

  1. If Loan.PaymentRemaining = 0 then Loan.PrincipalOutstanding = 0

Definition at line 18 of file LoanInvariant.h.

Member Function Documentation

◆ visitEntry()

void xrpl::ValidLoan::visitEntry ( bool isDelete,
SLE::const_ref before,
SLE::const_ref after )

Definition at line 18 of file LoanInvariant.cpp.

◆ finalize()

bool xrpl::ValidLoan::finalize ( STTx const & tx,
TER const ,
XRPAmount const ,
ReadView const & view,
beast::Journal const & j )

Definition at line 27 of file LoanInvariant.cpp.

Member Data Documentation

◆ loans_

std::vector<std::pair<SLE::const_pointer, SLE::const_pointer> > xrpl::ValidLoan::loans_
private

Definition at line 22 of file LoanInvariant.h.