Show / Hide Table of Contents

Class LoanManageQuote

What a LoanManage would do to the vault, the broker and the loan, or why the node would refuse it: the result of Impair(LOLoan, LOVault, DateTime, LedgerRules, ulong?), Unimpair(LOLoan, LOVault, DateTime, LedgerRules, ulong?) and Default(LOLoan, LOLoanBroker, LOVault, LedgerRules, DateTime?, ulong?). Amounts are in the vault asset's own unit - drops for XRP - as the Vault and LoanBroker fields are.

Inheritance
object
LoanManageQuote
Namespace: Xrpl.Sugar
Assembly: Xrpl.dll
Syntax
public sealed class LoanManageQuote
Remarks

When the node would refuse the action, every "after" value equals its "before" value and DefaultCovered and VaultLoss are zero. Exposure is filled either way.

Properties

| Edit this page View Source

Action

The action quoted.

Declaration
public LoanManageAction Action { get; init; }
Property Value
Type Description
LoanManageAction
| Edit this page View Source

AssetsAvailableAfter

The vault's AssetsAvailable after the transaction.

Declaration
public decimal AssetsAvailableAfter { get; init; }
Property Value
Type Description
decimal
| Edit this page View Source

AssetsAvailableBefore

The vault's AssetsAvailable before the transaction.

Declaration
public decimal AssetsAvailableBefore { get; init; }
Property Value
Type Description
decimal
| Edit this page View Source

AssetsTotalAfter

The vault's AssetsTotal after the transaction.

Declaration
public decimal AssetsTotalAfter { get; init; }
Property Value
Type Description
decimal
| Edit this page View Source

AssetsTotalBefore

The vault's AssetsTotal before the transaction.

Declaration
public decimal AssetsTotalBefore { get; init; }
Property Value
Type Description
decimal
| Edit this page View Source

CoverAvailableAfter

The broker's CoverAvailable after a default; null for the other actions.

Declaration
public decimal? CoverAvailableAfter { get; init; }
Property Value
Type Description
decimal?
| Edit this page View Source

CoverAvailableBefore

The broker's CoverAvailable before a default; null for the other actions.

Declaration
public decimal? CoverAvailableBefore { get; init; }
Property Value
Type Description
decimal?
| Edit this page View Source

DebtTotalAfter

The broker's DebtTotal after a default; null for the other actions.

Declaration
public decimal? DebtTotalAfter { get; init; }
Property Value
Type Description
decimal?
| Edit this page View Source

DebtTotalBefore

The broker's DebtTotal before a default; null for the other actions, which do not touch the broker.

Declaration
public decimal? DebtTotalBefore { get; init; }
Property Value
Type Description
decimal?
| Edit this page View Source

DefaultCovered

The part of a default the broker's first-loss cover pays to the vault; zero for the other actions.

Declaration
public decimal DefaultCovered { get; init; }
Property Value
Type Description
decimal
| Edit this page View Source

Exposure

The loan's exposure (Exposure(LOLoan, LOVault, LedgerRules)): what an impairment books as unrealized loss, an unimpairment reverses and a default writes off.

Declaration
public decimal Exposure { get; init; }
Property Value
Type Description
decimal
| Edit this page View Source

IsAccepted

Whether the transaction passes the checks LoanManagement repeats.

Declaration
public bool IsAccepted { get; }
Property Value
Type Description
bool
| Edit this page View Source

LossUnrealizedAfter

The vault's LossUnrealized after the transaction.

Declaration
public decimal LossUnrealizedAfter { get; init; }
Property Value
Type Description
decimal
| Edit this page View Source

LossUnrealizedBefore

The vault's LossUnrealized before the transaction.

Declaration
public decimal LossUnrealizedBefore { get; init; }
Property Value
Type Description
decimal
| Edit this page View Source

NextPaymentDueDateAfter

The loan's NextPaymentDueDate after the transaction (UTC). Before fixCleanup3_4_0 an impairment moves a date not yet passed to the parent close time and an unimpairment recomputes it; under the amendment neither touches it. Null after a default, which removes the field.

Declaration
public DateTime? NextPaymentDueDateAfter { get; init; }
Property Value
Type Description
Nullable
| Edit this page View Source

Refusal

The result the node would give instead, such as tecNO_PERMISSION, tecTOO_SOON or tecLIMIT_EXCEEDED; null when these checks pass.

Declaration
public string Refusal { get; init; }
Property Value
Type Description
string
| Edit this page View Source

RefusalReason

Why the node would refuse, in words; null when these checks pass.

Declaration
public string RefusalReason { get; init; }
Property Value
Type Description
string
| Edit this page View Source

ShareValueAfter

What one share is worth after the transaction; see ShareValueBefore.

Declaration
public decimal? ShareValueAfter { get; init; }
Property Value
Type Description
decimal?
| Edit this page View Source

ShareValueBefore

What one share is worth before the transaction, in the vault asset's unit: (AssetsTotal - LossUnrealized) / the shares outstanding, the price a withdrawal is computed at before it is rounded to the asset. Null when the shares outstanding were not given or are zero. A sole shareholder withdraws without bearing the unrealized loss under fixCleanup3_2_0, so for them a share is worth more.

Declaration
public decimal? ShareValueBefore { get; init; }
Property Value
Type Description
decimal?
| Edit this page View Source

VaultLoss

The loss a default realizes for the vault's depositors: the exposure less DefaultCovered, rounded down to the scale of AssetsTotal. Zero for the other actions, which move only the unrealized loss.

Declaration
public decimal VaultLoss { get; init; }
Property Value
Type Description
decimal
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX