Refactored
This commit is contained in:
@@ -57,7 +57,7 @@ impl Launchpad for PumpFun {
|
||||
}
|
||||
|
||||
async fn listen(client: Arc<Client>, tx: mpsc::Sender<Event>) -> anyhow::Result<()> {
|
||||
let mut ws = client.0.lock().await;
|
||||
let mut ws = client.solana.lock().await;
|
||||
|
||||
ws.send(
|
||||
serde_json::json!({
|
||||
@@ -118,13 +118,6 @@ impl Launchpad for PumpFun {
|
||||
market_cap_sol: event.market_cap_sol,
|
||||
};
|
||||
|
||||
log::info!(
|
||||
"[PUMP.FUN] New token: {} (${}) - {}",
|
||||
token.name,
|
||||
token.symbol,
|
||||
token.mint
|
||||
);
|
||||
|
||||
if tx.send(Event::NewToken(token)).await.is_err() {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user