Refactored

This commit is contained in:
2026-08-07 20:45:52 +02:00
parent 4167e89824
commit 679b2b31d9
4 changed files with 45 additions and 40 deletions
+1 -8
View File
@@ -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;
}