carbon-marginfi-v2-decoder 1.0.0

MarginfiV2 Decoder
Documentation
//! 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 LiquidationCache {
    /// Internal risk engine asset value snapshot taken when liquidation begins,
    /// using maintenance weight with all confidence adjustments.
    /// * Uses SPOT price
    /// * In dollars
    pub asset_value_maint: WrappedI80F48,
    /// Internal risk engine liability value snapshot taken when liquidation
    /// begins, using maintenance weight with all confidence adjustments.
    /// * Uses SPOT price
    /// * In dollars
    pub liability_value_maint: WrappedI80F48,
    /// Actual cash value of assets pre-liquidation (inclusive of price
    /// adjustment for oracle confidence, but without any weights)
    /// * Liquidator is allowed to seize up to `liability_value_equity` - this
    ///   amount
    /// * Uses EMA price
    /// * In dollars
    pub asset_value_equity: WrappedI80F48,
    /// Actual cash value of liabilities pre-liquidation (inclusive of price
    /// adjustment for oracle confidence, but without any weights)
    /// * Liquidator is allowed to seize up to this amount -
    ///   `asset_value_equity`
    /// * Uses EMA price
    /// * In dollars
    pub liability_value_equity: WrappedI80F48,
    pub placeholder: u64,
    pub reserved0: [u8; 32],
}