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,
execution_budget: u32,
) -> Pin<Box<dyn Future<Output = Result<BatchSwapOutputData>> + 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,
execution_budget: u32,
) -> Pin<Box<dyn Future<Output = Result<BatchSwapOutputData>> + Send + 'async_trait>>where
Self: 'static + Send + 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.