refactor: simplify instruction builders and optimize transaction construction
- Remove redundant helper methods in instruction builders (bonk, pumpfun, pumpswap, raydium) - Inline buy/sell instruction construction for better performance - Remove unnecessary Buy/Sell structs and helper functions in pumpfun - Consolidate instruction building logic to reduce code duplication - Fix pointer dereference issue in parallel execution - Improve code maintainability and reduce complexity
This commit is contained in:
@@ -69,7 +69,7 @@ pub async fn parallel_execute_with_tips(
|
||||
let transaction = build_transaction(
|
||||
payer,
|
||||
&priority_fee,
|
||||
(*instructions).clone(),
|
||||
instructions.as_ref().clone(),
|
||||
lookup_table_key,
|
||||
recent_blockhash,
|
||||
data_size_limit,
|
||||
|
||||
Reference in New Issue
Block a user