StakeUpErrors

Below are a list of error codes within the Bloom ecosystem.

// =================== Staking ===================
/// @notice Emitted if the staking is locked due to a user depositing less than 24 hours ago
error Locked();

// =================== Curve Gauge Distributor ===================
/// @notice Emitted if the caller tries to seed the gauges to early
error TooEarlyToSeed();

/// @notice Emitted if the reward allocation is not met
error RewardAllocationNotMet();

/// @notice Emitted if the contract is not initialized
error NotInitialized();

// ========================= Staking ===========================
// @notice Token amount is 0
error ZeroTokensStaked();

// @notice User has no current stake
error UserHasNoStake();

// @notice User has no rewards to claim
error NoRewardsToClaim();

// ========================= Layer Zero ===========================
/// @notice If the LZ Compose call fails
error LZComposeFailed();

/// @notice If the originating OApp of the LZCompose call is invalid
error InvalidOApp();

/// @notice Invalid Peer ID
error InvalidPeerID();

/// @notice Error emmitted if the nonce of an incoming message is not what its suppose to be
error InvalidNonce();

/// @notice Error emmitted if the msg.value is less than the fee
error InvalidMsgValue();

// ========================= SUP Token ===========================
/// @notice Amount being minted is greater than the supply cap
error ExceedsMaxSupply();

/// @notice Invalid recipient, must be non-zero address
error InvalidRecipient();

// ========================= StUsdc Token ===========================
/// @notice Error emitted if the asset does not match the BloomPool's asset
error InvalidAsset();

/// @notice Insufficient balance
error InsufficientBalance();

/// @notice TBY redeemable
error RedeemableTbyNotAllowed();

/// @notice Keepers are not allowed for this deployment of stUsdc
error KeepersNotAllowed();

/// @notice Rate update too often
error RateUpdateTooOften();

// ========================= General ===========================
/// @notice Zero amount
error ZeroAmount();

// @notice The address is 0
error ZeroAddress();

/// @dev Error emitted when caller is not allowed to execute a function
error UnauthorizedCaller();

/// @notice Contract has already been initialized
error AlreadyInitialized();

Last updated