//! 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],
}