carbon-marginfi-v2-decoder 1.0.0

MarginfiV2 Decoder
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! This code was AUTOGENERATED using the Codama library.
use crate::types::EmodeEntry;
/// An emode configuration. Each bank has one such configuration, but this may
/// also be the intersection of many configurations (see
/// `reconcile_emode_configs`). For example, the risk engine creates such an
/// intersection from all the emode config of all banks the user is borrowing
/// from.
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, borsh::BorshSerialize, borsh::BorshDeserialize, PartialEq)]
pub struct EmodeConfig {
    pub entries: [EmodeEntry; 10],
}