carbon-drift-v2-decoder 1.0.0

Drift v2 Decoder
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! This code was AUTOGENERATED using the Codama library.
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, borsh::BorshSerialize, borsh::BorshDeserialize, PartialEq)]
pub struct PoolBalance {
    /// To get the pool's token amount, you must multiply the scaled balance by
    /// the market's cumulative deposit interest
    /// precision: SPOT_BALANCE_PRECISION
    pub scaled_balance: u128,
    /// The spot market the pool is for
    pub market_index: u16,
    pub padding: [u8; 6],
}