AMMWithdraw constructor

AMMWithdraw({
  1. required String account,
  2. required XRPCurrencies asset,
  3. required XRPCurrencies asset2,
  4. CurrencyAmount? amount,
  5. CurrencyAmount? amount2,
  6. CurrencyAmount? ePrice,
  7. IssuedCurrencyAmount? lpTokenIn,
  8. List<XRPLMemo>? memos = const [],
  9. String signingPubKey = "",
  10. int? ticketSequance,
  11. BigInt? fee,
  12. int? lastLedgerSequence,
  13. int? sequence,
  14. List<XRPLSigners>? signers,
  15. dynamic flags,
  16. int? sourceTag,
  17. 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);