hypercall/constants.rs
1//! Global constants for the hypercall trading engine.
2
3/// Ratio of Maintenance Margin to Initial Margin.
4///
5/// MM = IM * MM_TO_IM_RATIO
6///
7/// This creates a buffer between the margin required to open a position (IM)
8/// and the margin required to maintain it (MM). When equity falls below MM,
9/// liquidation is triggered.
10///
11/// Example: With ratio 0.85, a position opened with $100 IM only needs $85 MM
12/// to avoid liquidation, giving the user a 15% buffer.
13pub const MM_TO_IM_RATIO: f64 = 0.85;