feat: add support for pump mayhem mode

This commit is contained in:
ysq
2025-11-10 15:30:24 +08:00
parent 4f315187f3
commit 4cee5e6a06
15 changed files with 180 additions and 68 deletions
+6
View File
@@ -58,6 +58,8 @@ pub struct BondingCurveAccount {
pub complete: bool,
/// Creator of the bonding curve
pub creator: Pubkey,
/// Whether this is a mayhem mode token (Token2022)
pub is_mayhem_mode: bool,
}
impl BondingCurveAccount {
@@ -67,6 +69,7 @@ impl BondingCurveAccount {
dev_token_amount: u64,
dev_sol_amount: u64,
creator: Pubkey,
is_mayhem_mode: bool,
) -> Self {
let account = if bonding_curve != Pubkey::default() {
bonding_curve
@@ -83,6 +86,7 @@ impl BondingCurveAccount {
token_total_supply: TOKEN_TOTAL_SUPPLY,
complete: false,
creator: creator,
is_mayhem_mode: is_mayhem_mode,
}
}
@@ -94,6 +98,7 @@ impl BondingCurveAccount {
virtual_sol_reserves: u64,
real_token_reserves: u64,
real_sol_reserves: u64,
is_mayhem_mode: bool,
) -> Self {
let account = if bonding_curve != Pubkey::default() {
bonding_curve
@@ -110,6 +115,7 @@ impl BondingCurveAccount {
token_total_supply: TOKEN_TOTAL_SUPPLY,
complete: false,
creator: creator,
is_mayhem_mode: is_mayhem_mode,
}
}