Skip to main content

ore_stake_api/
error.rs

1use steel::*;
2
3#[derive(Debug, Error, Clone, Copy, PartialEq, Eq, IntoPrimitive)]
4#[repr(u32)]
5pub enum OreStakeError {
6    #[error("Amount is zero")]
7    AmountZero = 0,
8
9    #[error("No deposits")]
10    NoDeposits = 1,
11
12    #[error("Insufficient balance")]
13    InsufficientBalance = 2,
14}
15
16error!(OreStakeError);