Trait penumbra_dex::component::router::HandleBatchSwaps
source · pub trait HandleBatchSwaps: StateWrite + Sized {
// Provided method
fn handle_batch_swaps<'life0, 'async_trait>(
self: &'life0 mut Arc<Self>,
trading_pair: TradingPair,
batch_data: SwapFlow,
block_height: u64,
params: RoutingParams
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'static + Send + 'async_trait,
'life0: 'async_trait { ... }
}
Available on crate feature
component
only.Expand description
Ties together the routing and filling logic, to process a block’s batch swap flows.
Provided Methods§
fn handle_batch_swaps<'life0, 'async_trait>(
self: &'life0 mut Arc<Self>,
trading_pair: TradingPair,
batch_data: SwapFlow,
block_height: u64,
params: RoutingParams
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'static + Send + 'async_trait,
'life0: 'async_trait,
Object Safety§
This trait is not object safe.