fix(pumpfun): resolve creator_vault with fee-sharing PDA (mint-aware)
- Add get_fee_sharing_config_pda per @pump-fun/pump-sdk (sharing-config + mint under pump-fees) - resolve_creator_vault_for_ix now takes mint: accept gRPC creator_vault when it matches either PDA(creator) or PDA(fee_sharing_config(mint)) for migrated / fee-sharing bonding curves - Mayhem uses the same Pump buy/sell account layout (IDL); Token-2022 + fee pool differ, not creator_vault seeds Made-with: Cursor
This commit is contained in:
@@ -185,6 +185,7 @@ impl PumpFunParams {
|
||||
let creator_vault_resolved = crate::instruction::utils::pumpfun::resolve_creator_vault_for_ix(
|
||||
&bonding_curve_account.creator,
|
||||
creator_vault,
|
||||
&mint,
|
||||
)
|
||||
.unwrap_or_default();
|
||||
Self {
|
||||
@@ -232,6 +233,7 @@ impl PumpFunParams {
|
||||
let creator_vault_resolved = crate::instruction::utils::pumpfun::resolve_creator_vault_for_ix(
|
||||
&bonding_curve.creator,
|
||||
creator_vault,
|
||||
&mint,
|
||||
)
|
||||
.unwrap_or_default();
|
||||
Self {
|
||||
|
||||
Reference in New Issue
Block a user