Function fetch_and_add_pool_by_pool_id

Source
pub async fn fetch_and_add_pool_by_pool_id<P, PL, N, DB, LDT>(
    client: P,
    market: SharedState<Market>,
    market_state: SharedState<MarketState<DB>>,
    pool_loaders: Arc<PoolLoaders<PL, N, LDT>>,
    pool_id: PoolId,
    pool_class: PoolClass,
) -> Result<(PoolId, Vec<usize>)>
where N: Network<TransactionRequest = LDT::TransactionRequest>, P: Provider<N> + DebugProviderExt<N> + Send + Sync + Clone + 'static, PL: Provider<N> + Send + Sync + Clone + 'static, DB: DatabaseRef + Database + DatabaseCommit + Send + Sync + Clone + 'static, LDT: KabuDataTypesEVM + 'static,
Expand description

Fetch pool data, add it to the market and fetch the required state