Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
change worldchain filter to pool based
  • Loading branch information
vfat committed Apr 30, 2025
commit 762bc89323356617e41b246cdc41df4657bfc9f0
6 changes: 5 additions & 1 deletion examples/quickstart/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ async fn main() {

let tvl_filter = ComponentFilter::with_tvl_range(cli.tvl_threshold, cli.tvl_threshold);

let id_filter = ComponentFilter::Ids(vec![
"0x5f835420502a7702de50cd0e78d8aa3608b2137e".to_string(), // Worldchain ETH / USDC.e
]);

println!("Loading tokens from Tycho... {}", tycho_url.as_str());
let all_tokens =
load_all_tokens(tycho_url.as_str(), true, Some(tycho_api_key.as_str()), chain, None, None)
Expand Down Expand Up @@ -208,7 +212,7 @@ async fn main() {
}
Chain::Worldchain => {
protocol_stream =
protocol_stream.exchange::<UniswapV3State>("uniswap_v3", tvl_filter.clone(), None)
protocol_stream.exchange::<UniswapV3State>("uniswap_v3", id_filter.clone(), None)
}
_ => {}
}
Expand Down