Trait hydradx_traits::Resolver
source · 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§
sourcefn resolve_single_intention(intention: &Intention)
fn resolve_single_intention(intention: &Intention)
Resolve an intention directl via AMM pool.
sourcefn resolve_matched_intentions(
pair_account: &AccountId,
intention: &Intention,
matched: &[&Intention]
)
fn resolve_matched_intentions(
pair_account: &AccountId,
intention: &Intention,
matched: &[&Intention]
)
Resolve intentions by either directly trading with each other or via AMM pool.
Intention intention
must be validated prior to call this function.