loom_defi_market::pool_loader

Function fetch_state_and_add_pool

Source
pub async fn fetch_state_and_add_pool<P, T, N, DB>(
    client: P,
    market: SharedState<Market>,
    market_state: SharedState<MarketState<DB>>,
    pool_wrapped: PoolWrapper,
) -> Result<()>
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,