From bc05fdc7cb28d1479fd73e00e7ced084107a5f98 Mon Sep 17 00:00:00 2001 From: wei <1415121722@qq.com> Date: Wed, 18 Jun 2025 17:39:43 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"feat=EF=BC=9Acheck=20if=20the=20accou?= =?UTF-8?q?nt=20exists=20before=20selling"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fa941174c2221484d62a5752081391bd84687184. --- src/trading/protocols/pumpfun.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/trading/protocols/pumpfun.rs b/src/trading/protocols/pumpfun.rs index 6bbe831..7ae899b 100644 --- a/src/trading/protocols/pumpfun.rs +++ b/src/trading/protocols/pumpfun.rs @@ -110,16 +110,6 @@ impl InstructionBuilder for PumpFunInstructionBuilder { let creator_vault_pda = get_creator_vault_pda(¶ms.creator).unwrap(); let ata = get_associated_token_address(¶ms.payer.pubkey(), ¶ms.mint); - // 检查账户是否存在 - if let Some(rpc) = ¶ms.rpc { - let account_info = rpc.get_account(&ata).await; - if account_info.is_err() { - return Err(anyhow!("account not exists")); - } - } else { - return Err(anyhow!("RPC client is required to check account existence")); - } - // 获取代币余额 let balance_u64 = if let Some(rpc) = ¶ms.rpc { let balance = rpc.get_token_account_balance(&ata).await?;