Trait penumbra_dex::component::router::RouteAndFill

source ·
pub trait RouteAndFill: StateWrite + Sized {
    // Provided method
    fn route_and_fill<'life0, 'async_trait>(
        self: &'life0 mut Arc<Self>,
        asset_1: Id,
        asset_2: Id,
        input: Amount,
        params: RoutingParams,
        execution_circuit_breaker: ExecutionCircuitBreaker
    ) -> Pin<Box<dyn Future<Output = Result<SwapExecution>> + Send + 'async_trait>>
       where Self: 'static + Send + 'async_trait,
             'life0: 'async_trait { ... }
}
Available on crate feature component only.
Expand description

Lower-level trait that ties together the routing and filling logic.

Provided Methods§

source

fn route_and_fill<'life0, 'async_trait>( self: &'life0 mut Arc<Self>, asset_1: Id, asset_2: Id, input: Amount, params: RoutingParams, execution_circuit_breaker: ExecutionCircuitBreaker ) -> Pin<Box<dyn Future<Output = Result<SwapExecution>> + Send + 'async_trait>>
where Self: 'static + Send + 'async_trait, 'life0: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§