TradeOptions class

Constructors

TradeOptions({required Percent allowedSlippage, bool? feeOnTransfer, required String recipient, required double ttl})

Properties

allowedSlippage ↔ Percent
How much the execution price is allowed to move unfavorably from the trade execution price.
getter/setter pair
feeOnTransfer ↔ bool?
Whether any of the tokens in the path are fee on transfer tokens, which should be handled with special methods
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
recipient ↔ String
The account that should receive the output of the swap.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
ttl ↔ double
How long the swap is valid until it expires, in seconds. This will be used to produce a deadline parameter which is computed from when the swap call parameters are generated.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited