/// Errors from margin/balance math operations.
#[derive(Debug, thiserror::Error)]
pub enum MathError {
    #[error("arithmetic overflow in margin calculation")]
    Overflow,
}

pub type MathResult<T> = Result<T, MathError>;
