Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use {
},
infra::{self, observe::metrics},
},
ethrpc::alloy::conversions::IntoLegacy,
futures::FutureExt,
model::interaction::InteractionData,
shared::{
Expand Down Expand Up @@ -83,7 +82,7 @@ impl Detector {
async move {
let result = inner
.detector
.test_transfer(trader, sell_token.0.0, sell_amount.into_legacy(), &pre_interactions)
.test_transfer(trader, sell_token.0.0, sell_amount, &pre_interactions)
.await;
match result {
Err(err) => {
Expand Down
2 changes: 1 addition & 1 deletion crates/shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0"
doctest = false

[dependencies]
alloy = { workspace = true, features = ["sol-types", "signer-local"] }
alloy = { workspace = true, features = ["sol-types", "signer-local", "rand", "provider-trace-api"] }
anyhow = { workspace = true }
app-data = { workspace = true }
bytes-hex = { workspace = true }
Expand Down
12 changes: 4 additions & 8 deletions crates/shared/src/bad_token/token_owner_finder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,11 @@ use {
http_client::HttpClientFactory,
sources::uniswap_v2::pair_provider::PairProvider,
},
alloy::primitives::Address,
alloy::primitives::{Address, U256},
anyhow::{Context, Result},
chain::Chain,
contracts::alloy::{BalancerV2Vault, ERC20, IUniswapV3Factory},
ethcontract::U256,
ethrpc::alloy::{
conversions::{IntoAlloy, IntoLegacy},
errors::ContractErrorExt,
},
ethrpc::alloy::errors::ContractErrorExt,
futures::{Stream, StreamExt as _},
rate_limit::Strategy,
reqwest::Url,
Expand Down Expand Up @@ -458,9 +454,9 @@ impl TokenOwnerFinding for TokenOwnerFinder {

if let Some((addr, balance)) = balances
.into_iter()
.find(|(_, balance)| *balance >= min_balance.into_alloy())
.find(|(_, balance)| *balance >= min_balance)
{
return Ok(Some((addr, balance.into_legacy())));
return Ok(Some((addr, balance)));
}
}

Expand Down
Loading
Loading