From 1252446c9016c72a052a1b81b011bb2082e1fd4b Mon Sep 17 00:00:00 2001 From: ysq Date: Sun, 7 Sep 2025 23:54:37 +0800 Subject: [PATCH] fixed --- src/instruction/utils/pumpfun.rs | 2 +- src/instruction/utils/pumpswap.rs | 2 +- src/trading/core/params.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/instruction/utils/pumpfun.rs b/src/instruction/utils/pumpfun.rs index 29f9e14..29ae3b2 100644 --- a/src/instruction/utils/pumpfun.rs +++ b/src/instruction/utils/pumpfun.rs @@ -139,7 +139,7 @@ pub mod accounts { pub const GLOBAL_VOLUME_ACCUMULATOR_META: once_cell::sync::Lazy< solana_sdk::instruction::AccountMeta, > = once_cell::sync::Lazy::new(|| { - solana_sdk::instruction::AccountMeta::new_readonly( + solana_sdk::instruction::AccountMeta::new( get_global_volume_accumulator_pda().unwrap(), false, ) diff --git a/src/instruction/utils/pumpswap.rs b/src/instruction/utils/pumpswap.rs index c2a4ecc..eaa381a 100644 --- a/src/instruction/utils/pumpswap.rs +++ b/src/instruction/utils/pumpswap.rs @@ -93,7 +93,7 @@ pub mod accounts { pub const GLOBAL_VOLUME_ACCUMULATOR_META: once_cell::sync::Lazy< solana_sdk::instruction::AccountMeta, > = once_cell::sync::Lazy::new(|| { - solana_sdk::instruction::AccountMeta::new_readonly( + solana_sdk::instruction::AccountMeta::new( get_global_volume_accumulator_pda().unwrap(), false, ) diff --git a/src/trading/core/params.rs b/src/trading/core/params.rs index 138a2ea..741fa24 100755 --- a/src/trading/core/params.rs +++ b/src/trading/core/params.rs @@ -177,7 +177,7 @@ impl PumpSwapParams { let pool_data = crate::instruction::utils::pumpswap::fetch_pool(rpc, pool_address).await?; let (pool_base_token_reserves, pool_quote_token_reserves) = crate::instruction::utils::pumpswap::get_token_balances(&pool_data, rpc).await?; - let creator = pool_data.creator; + let creator = pool_data.coin_creator; let coin_creator_vault_ata = crate::instruction::utils::pumpswap::coin_creator_vault_ata( creator, pool_data.quote_mint,