gmsol-utils 0.8.0

GMX-Solana is an extension of GMX on the Solana blockchain.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Max number of flags for GLV markets.
pub const MAX_GLV_MARKET_FLAGS: usize = 8;

/// GLV Market Config Flag.
#[derive(
    num_enum::IntoPrimitive, Clone, Copy, strum::EnumString, strum::Display, PartialEq, Eq, Hash,
)]
#[strum(serialize_all = "snake_case")]
#[cfg_attr(feature = "enum-iter", derive(strum::EnumIter))]
#[cfg_attr(feature = "debug", derive(Debug))]
#[repr(u8)]
pub enum GlvMarketFlag {
    /// Is deposit allowed.
    IsDepositAllowed,
    // CHECK: cannot have more than `MAX_FLAGS` flags.
}