#[repr(C)]pub struct Account {Show 17 fields
pub account_id: u64,
pub capital: U128,
pub kind: u8,
pub pnl: i128,
pub reserved_pnl: u128,
pub warmup_started_at_slot: u64,
pub warmup_slope_per_step: u128,
pub position_basis_q: i128,
pub adl_a_basis: u128,
pub adl_k_snap: i128,
pub adl_epoch_snap: u64,
pub matcher_program: [u8; 32],
pub matcher_context: [u8; 32],
pub owner: [u8; 32],
pub fee_credits: I128,
pub last_fee_slot: u64,
pub fees_earned_total: U128,
}Expand description
Unified account (spec §2.1)
Fields§
§account_id: u64§capital: U128§kind: u8§pnl: i128Realized PnL (i128, spec §2.1)
reserved_pnl: u128Reserved positive PnL (u128, spec §2.1)
warmup_started_at_slot: u64Warmup start slot
warmup_slope_per_step: u128Linear warmup slope (u128, spec §2.1)
position_basis_q: i128Signed fixed-point base quantity basis (i128, spec §2.1)
adl_a_basis: u128Side multiplier snapshot at last explicit position attachment (u128)
adl_k_snap: i128K coefficient snapshot (i128)
adl_epoch_snap: u64Side epoch snapshot
matcher_program: [u8; 32]LP matching engine program ID
matcher_context: [u8; 32]§owner: [u8; 32]Owner pubkey
fee_credits: I128Fee credits
last_fee_slot: u64§fees_earned_total: U128Cumulative LP trading fees
Implementations§
Trait Implementations§
impl Copy for Account
impl Eq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnsafeUnpin for Account
impl UnwindSafe for Account
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more