mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
20 lines
401 B
Rust
20 lines
401 B
Rust
use steel::*;
|
|
|
|
#[derive(Debug, Error, Clone, Copy, PartialEq, Eq, IntoPrimitive)]
|
|
#[repr(u32)]
|
|
pub enum OreError {
|
|
#[error("Placeholder error")]
|
|
Dummy = 0,
|
|
|
|
#[error("Insufficient vault reserves")]
|
|
InsufficientVaultReserves = 1,
|
|
|
|
#[error("Invariant violation")]
|
|
InvariantViolation = 2,
|
|
|
|
#[error("Insufficient liquidity")]
|
|
InsufficientLiquidity = 3,
|
|
}
|
|
|
|
error!(OreError);
|