//! This code was AUTOGENERATED using the Codama library.
use crate::types::WrappedI80F48;
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, borsh::BorshSerialize, borsh::BorshDeserialize, PartialEq)]
pub struct EmodeEntry {
/// emode_tag of the bank(s) whose collateral you wish to treat
/// preferentially.
pub collateral_bank_emode_tag: u16,
/// * APPLIES_TO_ISOLATED (1) - (NOT YET IMPLEMENTED) if set, isolated banks
/// with this tag
///
/// also benefit. If not set, isolated banks continue to offer zero
/// collateral, even if they use this tag.
/// * 2, 4, 8, 16, 32, etc - reserved for future use
pub flags: u8,
pub pad0: [u8; 5],
/// Note: If set below the collateral bank's weight, does nothing.
pub asset_weight_init: WrappedI80F48,
/// Note: If set below the collateral bank's weight, does nothing.
pub asset_weight_maint: WrappedI80F48,
}