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

A change to a FixedPrecision Vault's balances. More...

#include <VaultHelpers.h>

Collaboration diagram for xrpl::VaultBalanceChange:

Public Attributes

std::optional< STAmount > cash = std::nullopt
 Signed change to AssetsAvailable.
Number deployed = 0
 Signed change to AssetsDeployed: open Loan principal, exact.
Number yield = 0
 Signed change to scheduled, unpaid interest (YieldUnrealized), exact.
Number loss = 0
 Signed change to impaired principal (LossUnrealized), exact.

Detailed Description

A change to a FixedPrecision Vault's balances.

Definition at line 43 of file VaultHelpers.h.

Member Data Documentation

◆ cash

std::optional<STAmount> xrpl::VaultBalanceChange::cash = std::nullopt

Signed change to AssetsAvailable.

Must be the exact amount moved on the Vault pseudo-account in the same transaction. Absent means no cash moved; adjustVaultBalances then uses zero of the Vault's own asset.

Definition at line 50 of file VaultHelpers.h.

◆ deployed

Number xrpl::VaultBalanceChange::deployed = 0

Signed change to AssetsDeployed: open Loan principal, exact.

Definition at line 55 of file VaultHelpers.h.

◆ yield

Number xrpl::VaultBalanceChange::yield = 0

Signed change to scheduled, unpaid interest (YieldUnrealized), exact.

Definition at line 60 of file VaultHelpers.h.

◆ loss

Number xrpl::VaultBalanceChange::loss = 0

Signed change to impaired principal (LossUnrealized), exact.

Definition at line 65 of file VaultHelpers.h.