fix(pumpfun): preserve observed fee recipient

This commit is contained in:
0xfnzero
2026-05-12 05:55:45 +08:00
parent 8e0210af97
commit 703ae5e4db
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -752,4 +752,13 @@ mod tests {
m.pubkey
);
}
#[test]
fn pump_fee_meta_uses_observed_standard_fee_for_standard_ix() {
let fee = global_constants::PUMPFUN_AMM_FEE_7;
let m = pump_fun_fee_recipient_meta(fee, false);
assert_eq!(m.pubkey, fee);
assert!(m.is_writable);
assert!(!m.is_signer);
}
}