refactor: organize code into multi-protocol architecture with PumpFun submodules

This commit is contained in:
sgxiang
2025-06-06 22:13:19 +08:00
parent bfe76fcddc
commit 63109713f4
22 changed files with 251 additions and 242 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ use crate::{
PriorityFee,
SolanaRpcClient
},
constants::{self, global_constants::FEE_RECIPIENT},
constants::{self, pumpfun::global_constants::FEE_RECIPIENT},
instruction,
swqos::{ClientType, FeeClient, TradeType}
};
@@ -387,7 +387,7 @@ pub async fn build_buy_instructions(
&payer.pubkey(),
&payer.pubkey(),
&mint,
&constants::accounts::TOKEN_PROGRAM,
&constants::pumpfun::accounts::TOKEN_PROGRAM,
));
instructions.push(instruction::buy(