pub trait Resolver<AccountId, Intention, E> {
    fn resolve_single_intention(intention: &Intention);
    fn resolve_matched_intentions(
        pair_account: &AccountId,
        intention: &Intention,
        matched: &[&Intention]
    ); }

Required Methods§

Resolve an intention directl via AMM pool.

Resolve intentions by either directly trading with each other or via AMM pool. Intention intention must be validated prior to call this function.

Implementors§