Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankieIsLost committed Jul 20, 2023
1 parent 28fe6a0 commit 5b569fa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/artemis-core/src/collectors/mevshare_collector.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions crates/strategies/mev-share-uni-arb/src/strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down Expand Up @@ -184,11 +184,11 @@ impl<M: Middleware + 'static, S: Signer + 'static> MevShareUniArb<M, S> {
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);
Expand Down
4 changes: 1 addition & 3 deletions crates/strategies/mev-share-uni-arb/src/types.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 0 additions & 1 deletion examples/mev-share-arb/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 5b569fa

Please sign in to comment.