use cosmwasm_std::StdError;
use thiserror::Error;
#[derive(Error, Debug, PartialEq)]
pub enum ContractError {
#[error("{0}")]
Std(#[from] StdError),
#[error("Unauthorized")]
Unauthorized {},
#[error("Contract is paused")]
Paused {},
#[error("Only the mine contract can call this")]
NotMineContract {},
#[error("Invalid referrer: self-referral is not allowed")]
SelfReferral {},
#[error("Invalid referrer: miner already bound to another referrer")]
ReferrerMismatch {},
#[error("Migration error")]
MigrationError {},
}
cw-cyber/contracts/litium-refer/src/error.rs
ฯ 0.0%
use StdError;
use Error;