pub async fn get_affected_pools_from_code<P, N>( client: P, market: SharedState<Market>, state_update: &GethStateUpdateVec, ) -> Result<BTreeMap<PoolWrapper, Vec<SwapDirection>>>where N: Network, P: Provider<N> + Send + Sync + Clone + 'static,