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 stake amount")]
InvalidStakeAmount {},
#[error("Unexpected funds sent")]
UnexpectedFunds {},
#[error("Insufficient staked balance")]
InsufficientStake {},
#[error("Migration error")]
MigrationError {},
}
cw-cyber/contracts/litium-stake/src/error.rs
ฯ 0.0%
use StdError;
use Error;