carbon-marginfi-v2-decoder 1.0.0

MarginfiV2 Decoder
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! This code was AUTOGENERATED using the Codama library.
use crate::types::Balance;
/// The lending account holds up to 16 balance positions for a user.
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, borsh::BorshSerialize, borsh::BorshDeserialize, PartialEq)]
pub struct LendingAccount {
    /// Array of balance positions (max 16). Sorted in descending order by
    /// bank_pk.
    pub balances: [Balance; 16],
    /// Last allocated balance tag (u16), used to find the next unused tag.
    pub last_tag_used: u16,
    /// Reserved for future use
    pub pad1: [u8; 6],
    /// Reserved for future use
    pub padding: [u64; 7],
}