rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
xrpl::ValidLoan Class Reference

Invariants: Loans are internally consistent. More...

#include <InvariantCheck.h>

Collaboration diagram for xrpl::ValidLoan:
Collaboration graph
[legend]

Public Member Functions

void visitEntry (bool, std::shared_ptr< SLE const > const &, std::shared_ptr< SLE const > const &)
 
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 814 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

void xrpl::ValidLoan::visitEntry ( bool  isDelete,
std::shared_ptr< SLE const > const &  before,
std::shared_ptr< SLE const > const &  after 
)

Definition at line 2529 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 2541 of file InvariantCheck.cpp.

Member Data Documentation

◆ loans_

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

Definition at line 818 of file InvariantCheck.h.