mirror of
https://github.com/0xfnzero/solana-streamer.git
synced 2026-08-22 13:28:08 +00:00
feat(pumpswap): forward virtual quote reserve upgrade
This commit is contained in:
@@ -44,6 +44,11 @@ pub struct PumpSwapBuyEvent {
|
||||
pub ix_name: String,
|
||||
pub cashback_fee_basis_points: u64,
|
||||
pub cashback: u64,
|
||||
pub buyback_fee_basis_points: u64,
|
||||
pub buyback_fee: u64,
|
||||
pub virtual_quote_reserves: i128,
|
||||
pub can_boost: bool,
|
||||
pub base_supply: u64,
|
||||
#[borsh(skip)]
|
||||
pub is_pump_pool: bool,
|
||||
#[borsh(skip)]
|
||||
@@ -105,6 +110,11 @@ pub struct PumpSwapSellEvent {
|
||||
pub coin_creator_fee: u64,
|
||||
pub cashback_fee_basis_points: u64,
|
||||
pub cashback: u64,
|
||||
pub buyback_fee_basis_points: u64,
|
||||
pub buyback_fee: u64,
|
||||
pub virtual_quote_reserves: i128,
|
||||
pub can_boost: bool,
|
||||
pub base_supply: u64,
|
||||
#[borsh(skip)]
|
||||
pub is_pump_pool: bool,
|
||||
#[borsh(skip)]
|
||||
|
||||
@@ -33,13 +33,12 @@ pub struct Pool {
|
||||
pub coin_creator: Pubkey,
|
||||
pub is_mayhem_mode: bool,
|
||||
pub is_cashback_coin: bool,
|
||||
/// On-chain reserved tail (7 bytes); keep in sync with pump_amm pool account layout.
|
||||
pub reserved: [u8; 7],
|
||||
pub virtual_quote_reserves: i128,
|
||||
}
|
||||
|
||||
/// Legacy pool account body (before `is_cashback_coin` + reserved).
|
||||
pub const POOL_BODY_LEGACY: usize = 1 + 2 + 32 * 6 + 8 + 32 + 1;
|
||||
/// Current pool account body including flags and reserved.
|
||||
pub const POOL_BODY: usize = POOL_BODY_LEGACY + 1 + 7;
|
||||
/// Legacy allocated pool account body.
|
||||
pub const POOL_BODY_LEGACY: usize = 244;
|
||||
/// Current serialized pool account body including signed virtual quote reserves.
|
||||
pub const POOL_BODY: usize = 253;
|
||||
|
||||
pub const POOL_SIZE: usize = POOL_BODY;
|
||||
|
||||
Reference in New Issue
Block a user