-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
token 2022 support for router #44
base: main
Are you sure you want to change the base?
Changes from all commits
da6c089
6459394
56340af
5149b58
ad4d6f1
d7a67a6
dcb1169
050415a
54e9f8b
89733a0
092d6da
16feea9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -762,9 +762,11 @@ async fn process_account_updated_from_sources( | |
metrics::GRPC_SNAPSHOT_ACCOUNT_WRITES.inc(); | ||
metrics::GRPC_ACCOUNT_WRITE_QUEUE.set(account_write_queue_sender.len() as i64); | ||
|
||
if !filters.contains(&account.pubkey) { | ||
continue; | ||
} | ||
// TODO: disabled for eclipse launch, was causing issues with the program id | ||
// subscription for invariant | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. guess we cannot merge that without breaking autobahn on solana |
||
// if !filters.contains(&account.pubkey) { | ||
// continue; | ||
// } | ||
|
||
updated_accounts.push(account); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,11 +82,15 @@ | |
|
||
impl BirdeyePriceFeed { | ||
pub async fn refresh( | ||
api_token: String, | ||
Check warning on line 85 in lib/router-lib/src/price_feeds/birdeye.rs GitHub Actions / Router full build
|
||
mints: &HashSet<Pubkey>, | ||
Check warning on line 86 in lib/router-lib/src/price_feeds/birdeye.rs GitHub Actions / Router full build
|
||
sender: broadcast::Sender<PriceUpdate>, | ||
Check warning on line 87 in lib/router-lib/src/price_feeds/birdeye.rs GitHub Actions / Router full build
|
||
) -> anyhow::Result<()> { | ||
|
||
// TODO: disabled for eclipse launch until traffic is live | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be a config param |
||
return Ok(()); | ||
|
||
let http_client = reqwest::Client::new(); | ||
Check warning on line 93 in lib/router-lib/src/price_feeds/birdeye.rs GitHub Actions / Router full build
|
||
|
||
let mut chunks: Vec<Vec<Pubkey>> = vec![]; | ||
for chunk in &mints.iter().chunks(50) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could have a list of well-known hardcoded spl_token instead of "step.out_mint != sol_mint"