xrpld
Loading...
Searching...
No Matches
xrpl::LoanState Struct Reference

This structure captures the parts of a loan state. More...

#include <LendingHelpers.h>

Collaboration diagram for xrpl::LoanState:

Public Member Functions

Number interestOutstanding () const

Public Attributes

Number valueOutstanding
Number principalOutstanding
Number interestDue
Number managementFeeDue

Detailed Description

This structure captures the parts of a loan state.

Whether the values are theoretical (unrounded) or rounded will depend on how it was computed.

Many of the fields can be derived from each other, but they're all provided here to reduce code duplication and possible mistakes. e.g.

  • interestOutstanding = valueOutstanding - principalOutstanding
  • interestDue = interestOutstanding - managementFeeDue

Definition at line 144 of file LendingHelpers.h.

Member Function Documentation

◆ interestOutstanding()

Number xrpl::LoanState::interestOutstanding ( ) const
nodiscard

Definition at line 159 of file LendingHelpers.h.

Member Data Documentation

◆ valueOutstanding

Number xrpl::LoanState::valueOutstanding

Definition at line 147 of file LendingHelpers.h.

◆ principalOutstanding

Number xrpl::LoanState::principalOutstanding

Definition at line 149 of file LendingHelpers.h.

◆ interestDue

Number xrpl::LoanState::interestDue

Definition at line 152 of file LendingHelpers.h.

◆ managementFeeDue

Number xrpl::LoanState::managementFeeDue

Definition at line 155 of file LendingHelpers.h.