AMMDelete constructor

AMMDelete({
  1. required String account,
  2. required XRPCurrencies asset,
  3. required XRPCurrencies asset2,
  4. List<XRPLMemo>? memos = const [],
  5. int? ticketSequance,
  6. String signingPubKey = "",
  7. int? sequence,
  8. String? fee,
  9. int? lastLedgerSequence,
})

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

Implementation

AMMDelete({
  required super.account,
  required this.asset,
  required this.asset2,
  super.memos,
  super.ticketSequance,
  super.signingPubKey,
  super.sequence,
  super.fee,
  super.lastLedgerSequence,
})  : assert(() {
        if (asset is IssuedCurrencyAmount || asset2 is IssuedCurrencyAmount) {
          return false;
        }
        return true;
      }(), "use IssuedCurrency instead of IssuedCurrencyAmount"),
      super(transactionType: XRPLTransactionType.AMM_DELETE);