Enum dex_v3::state::SelfTradeBehavior [−][src]
pub enum SelfTradeBehavior { DecrementTake, CancelProvide, AbortTransaction, }
Expand description
This enum describes different supported behaviors for handling self trading scenarios
Variants
Decrement take means that both the maker and taker sides of the matched orders are decremented.
This is equivalent to a normal order match, except for the fact that no fees are applies.
Cancels the maker side of the order.
Cancels the whole transaction as soon as a self-matching scenario is encountered.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SelfTradeBehavior
impl Send for SelfTradeBehavior
impl Sync for SelfTradeBehavior
impl Unpin for SelfTradeBehavior
impl UnwindSafe for SelfTradeBehavior
Blanket Implementations
Mutably borrows from an owned value. Read more