Class AmmQuote
What an AMM deposit or withdrawal would move, or why the node would refuse it. Amounts are in each asset's own unit - drops for XRP - and always positive.
Inheritance
Namespace: Xrpl.Sugar
Assembly: Xrpl.dll
Syntax
public sealed class AmmQuote
Properties
| Edit this page View SourceAsset1
The amount of the pool's first asset that moves.
Declaration
public decimal Asset1 { get; init; }
Property Value
| Type | Description |
|---|---|
| decimal |
Asset2
The amount of the pool's second asset that moves.
Declaration
public decimal Asset2 { get; init; }
Property Value
| Type | Description |
|---|---|
| decimal |
IsAccepted
Whether the transaction passes the checks AmmLiquidity repeats.
Declaration
public bool IsAccepted { get; }
Property Value
| Type | Description |
|---|---|
| bool |
LpTokens
The LP tokens issued by a deposit or redeemed by a withdrawal.
Declaration
public decimal LpTokens { get; init; }
Property Value
| Type | Description |
|---|---|
| decimal |
PoolAfter
The pool as the ledger will hold it afterwards: each balance and the LP token balance
with the amount added or taken away in STAmount arithmetic. An issued-currency
balance keeps 16 significant digits, so the difference between two balances can round
the amount that moved; these are the figures amm_info reports next.
Declaration
public AmmPool PoolAfter { get; init; }
Property Value
| Type | Description |
|---|---|
| AmmPool |
Refusal
The result the node would give instead, such as tecAMM_INVALID_TOKENS,
tecAMM_FAILED, tecAMM_BALANCE or tecPRECISION_LOSS; 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 |