Show / Hide Table of Contents

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
object
AmmQuote
Namespace: Xrpl.Sugar
Assembly: Xrpl.dll
Syntax
public sealed class AmmQuote

Properties

| Edit this page View Source

Asset1

The amount of the pool's first asset that moves.

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

Asset2

The amount of the pool's second asset that moves.

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

IsAccepted

Whether the transaction passes the checks AmmLiquidity repeats.

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

LpTokens

The LP tokens issued by a deposit or redeemed by a withdrawal.

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

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
| Edit this page View Source

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
| 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
In this article
Back to top Generated by DocFX