Show / Hide Table of Contents

Class VaultQuote

What a vault deposit or withdrawal would move, or why the node would refuse it: the result of VaultShares. Assets are in the vault asset's own unit - drops for XRP - and shares in whole units of the vault's share MPT.

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

Properties

| Edit this page View Source

Assets

Assets that move into the vault on a deposit, or out of it on a withdrawal.

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

AssetsDelivered

Assets the destination receives: Assets, less the transfer fee on a withdrawal that pays one (see WithdrawalTransferRate(IssuedCurrency, string, string, uint, LedgerRules)).

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

IsAccepted

Whether the transaction passes the checks VaultShares repeats.

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

Refusal

The result the node would give instead, such as tecPRECISION_LOSS, tecINSUFFICIENT_FUNDS, tecLIMIT_EXCEEDED or tecPATH_DRY (the conversion overflows); 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

Shares

Shares minted by a deposit or burned by a withdrawal.

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