From 5b569fada99aa2aaa492f02bdec6e7059b684631 Mon Sep 17 00:00:00 2001 From: frankie <88221686+FrankieIsLost@users.noreply.github.com> Date: Thu, 20 Jul 2023 13:37:18 +0200 Subject: [PATCH] fmt --- crates/artemis-core/src/collectors/mevshare_collector.rs | 2 +- crates/strategies/mev-share-uni-arb/src/strategy.rs | 6 +++--- crates/strategies/mev-share-uni-arb/src/types.rs | 4 +--- examples/mev-share-arb/src/main.rs | 1 - 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/crates/artemis-core/src/collectors/mevshare_collector.rs b/crates/artemis-core/src/collectors/mevshare_collector.rs index 3d35c73..c48abee 100644 --- a/crates/artemis-core/src/collectors/mevshare_collector.rs +++ b/crates/artemis-core/src/collectors/mevshare_collector.rs @@ -1,7 +1,7 @@ use crate::types::{Collector, CollectorStream}; use anyhow::Result; use async_trait::async_trait; -use mev_share::sse::{EventClient, Event}; +use mev_share::sse::{Event, EventClient}; use tokio_stream::StreamExt; /// A collector that streams from MEV-Share SSE endpoint diff --git a/crates/strategies/mev-share-uni-arb/src/strategy.rs b/crates/strategies/mev-share-uni-arb/src/strategy.rs index b647a8a..89021c5 100644 --- a/crates/strategies/mev-share-uni-arb/src/strategy.rs +++ b/crates/strategies/mev-share-uni-arb/src/strategy.rs @@ -16,7 +16,7 @@ use ethers::types::{Address, H256}; use ethers::types::{H160, U256}; use tracing::info; -use crate::types::{V2V3PoolRecord}; +use crate::types::V2V3PoolRecord; use super::types::{Action, Event}; @@ -184,11 +184,11 @@ impl MevShareUniArb { let signature = self.tx_signer.sign_transaction(&arb_tx).await.unwrap(); let bytes = arb_tx.rlp_signed(&signature); let txs = vec![ - BundleTx::TxHash { hash: tx_hash }, + BundleTx::TxHash { hash: tx_hash }, BundleTx::Tx { tx: bytes, can_revert: false, - } + }, ]; // bundle should be valid for next block let bundle = BundleRequest::make_simple(block_num.add(1), txs); diff --git a/crates/strategies/mev-share-uni-arb/src/types.rs b/crates/strategies/mev-share-uni-arb/src/types.rs index c09379a..1d11b70 100644 --- a/crates/strategies/mev-share-uni-arb/src/types.rs +++ b/crates/strategies/mev-share-uni-arb/src/types.rs @@ -1,6 +1,4 @@ -use artemis_core::{ - executors::mev_share_executor::Bundles, -}; +use artemis_core::executors::mev_share_executor::Bundles; use ethers::types::H160; use mev_share::sse; diff --git a/examples/mev-share-arb/src/main.rs b/examples/mev-share-arb/src/main.rs index eabfb26..99a8180 100644 --- a/examples/mev-share-arb/src/main.rs +++ b/examples/mev-share-arb/src/main.rs @@ -14,7 +14,6 @@ use ethers::{ signers::{LocalWallet, Signer}, types::{Address, Chain}, }; -use futures::StreamExt; use mev_share_uni_arb::{ strategy::MevShareUniArb, types::{Action, Event},