AMMVote constructor
AMMVote({})
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.
tradingFee
The proposed fee to vote for, in units of 1/100,000; a value of 1 is equivalent
to 0.001%.
The maximum value is 1000, indicating a 1% fee. This field is required.
Implementation
AMMVote({
required super.account,
required this.tradingFee,
required this.asset,
required this.asset2,
super.signingPubKey,
super.memos,
super.ticketSequance,
super.sequence,
super.fee,
super.lastLedgerSequence,
}) : assert(() {
if (tradingFee < 0 || tradingFee > AMMCreate.AMM_MAX_TRADING_FEE) {
return false;
}
return true;
}(), "Must be between 0 and ${AMMCreate.AMM_MAX_TRADING_FEE}"),
super(transactionType: XRPLTransactionType.AMM_VOTE);