Skip to content

Commit

Permalink
add more log
Browse files Browse the repository at this point in the history
  • Loading branch information
sokach-dev committed Dec 12, 2024
1 parent a68a7d4 commit e40d483
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions angel/src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,18 @@ async fn check_token_largest_accounts(Query(query): Query<TokenQuery>) -> impl I
match get_token_largest_accounts(&query.token, &c.get_random_solana_rpc_url()).await {
Ok(accounts) => {
for account in accounts {
debug!(
"check_token_largest_accounts: token: {}, amount: {}",
query.token, account.amount.ui_amount_string
);
match account.amount.ui_amount_string.parse::<f64>() {
Ok(amount) => {
if amount > check_amount {
debug!(
"check_token_largest_accounts: token: {}, amount: {}",
query.token, amount
);
count += 1;
info!(
"check_token_largest_accounts: token: {}, amount: {}, count: {}",
query.token, amount, count
);
}
}
Err(e) => {
Expand Down

0 comments on commit e40d483

Please sign in to comment.