loom_defi_market::pool_loader

Function pool_loader_worker

Source
pub async fn pool_loader_worker<P, T, N, DB>(
    client: P,
    market: SharedState<Market>,
    market_state: SharedState<MarketState<DB>>,
    tasks_rx: Broadcaster<Task>,
) -> WorkerResult
where T: Transport + Clone, N: Network, P: Provider<T, N> + DebugProviderExt<T, N> + Send + Sync + Clone + 'static, DB: Database + DatabaseRef + DatabaseCommit + Send + Sync + Clone + 'static,