use cosmwasm_std::StdError;
use thiserror::Error;
#[derive(Error, Debug, PartialEq)]
pub enum ContractError {
#[error("{0}")]
Std(#[from] StdError),
#[error("Unauthorized")]
Unauthorized {},
#[error("Invalid amount")]
InvalidAmount {},
#[error("Unexpected funds provided")]
UnexpectedFunds {},
#[error("Only the CW-20 contract can send tokens here")]
InvalidCw20Sender {},
#[error("Wrapped supply underflow")]
WrappedSupplyUnderflow {},
#[error("Migration error")]
MigrationError {},
}
cw-cyber/contracts/litium-wrap/src/error.rs
ฯ 0.0%
use StdError;
use Error;