Function fetch_state_and_add_pool

Source
pub async fn fetch_state_and_add_pool<P, N, DB, LDT>(
    client: P,
    market: SharedState<Market>,
    market_state: SharedState<MarketState<DB>>,
    pool_wrapped: PoolWrapper,
) -> Result<(PoolId, Vec<usize>)>
where N: Network<TransactionRequest = LDT::TransactionRequest>, P: Provider<N> + DebugProviderExt<N> + Send + Sync + Clone + 'static, DB: Database + DatabaseRef + DatabaseCommit + Send + Sync + Clone + 'static, LDT: KabuDataTypesEVM,