AMMWithdraw constructor
AMMWithdraw({
- required String account,
- required XRPCurrencies asset,
- required XRPCurrencies asset2,
- CurrencyAmount? amount,
- CurrencyAmount? amount2,
- CurrencyAmount? ePrice,
- IssuedCurrencyAmount? lpTokenIn,
- List<
XRPLMemo> ? memos = const [], - String signingPubKey = "",
- int? ticketSequance,
- BigInt? fee,
- int? lastLedgerSequence,
- int? sequence,
- List<
XRPLSigners> ? signers, - dynamic flags,
- int? sourceTag,
- List<
String> multiSigSigners = const [],
asset
The definition for one of the assets in the AMM's pool.
asset2
The definition for the other asset in the AMM's pool.
amount
The amount of one asset to withdraw from the AMM.
This must match the type of one of the assets (tokens or XRP) in the AMM's pool.
amount2
The amount of another asset to withdraw from the AMM.
If present, this must match the type of the other asset in the AMM's pool
and cannot be the same type as Amount.
ePrice
The minimum effective price, in LP Token returned, to pay per unit of the asset
to withdraw.
lpTokenIn
How many of the AMM's LP Tokens to redeem.
Implementation
AMMWithdraw(
{required String account,
required this.asset,
required this.asset2,
this.amount,
this.amount2,
this.ePrice,
this.lpTokenIn,
List<XRPLMemo>? memos = const [],
String signingPubKey = "",
int? ticketSequance,
BigInt? fee,
int? lastLedgerSequence,
int? sequence,
List<XRPLSigners>? signers,
dynamic flags,
int? sourceTag,
List<String> multiSigSigners = const []})
: super(
account: account,
fee: fee,
lastLedgerSequence: lastLedgerSequence,
memos: memos,
sequence: sequence,
signers: signers,
sourceTag: sourceTag,
flags: flags,
ticketSequance: ticketSequance,
signingPubKey: signingPubKey,
multiSigSigners: multiSigSigners,
transactionType: XRPLTransactionType.ammWithdraw);