use anchor_lang::prelude::*; #[error_code] pub enum SmartUpdownError { #[msg("Operation is paused")] Paused, #[msg("Only the admin can perform this action")] NotAdmin, #[msg("Only the relayer is allowed to close bets")] NotRelayer, #[msg("Amount below the allowed minimum")] AmountBelowMin, #[msg("Amount above the allowed maximum")] AmountAboveMax, #[msg("Invalid side value")] InvalidSide, #[msg("Bet is already finalized")] BetAlreadyFinalized, #[msg("Bet cannot be closed before expiry")] NotExpired, #[msg("Bet id mismatch")] BetIdMismatch, #[msg("Payout exceeds vault solvency")] InsufficientVault, }