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
Namespace: Xrpl.Sugar
Assembly: Xrpl.dll
Syntax
public sealed class VaultQuote
Properties
| Edit this page View SourceAssets
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 |
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 |
IsAccepted
Whether the transaction passes the checks VaultShares repeats.
Declaration
public bool IsAccepted { get; }
Property Value
| Type | Description |
|---|---|
| bool |
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 |
RefusalReason
Why the node would refuse, in words; null when these checks pass.
Declaration
public string RefusalReason { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Shares
Shares minted by a deposit or burned by a withdrawal.
Declaration
public decimal Shares { get; init; }
Property Value
| Type | Description |
|---|---|
| decimal |