Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions contracts/invoice-escrow/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ pub enum Error {
/// Funding target has not yet been reached.
FundingTargetNotReached = 32,
/// Deposit amount is zero (dust prevention: use a positive amount).
ZeroAmount = 29,
ZeroAmount = 40,
/// Deposit amount is below the configured minimum investment.
AmountBelowMinimum = 30,
AmountBelowMinimum = 41,
/// Address is the zero address (all-zero 32-byte key).
InvalidAddress = 31,
InvalidAddress = 42,
/// Escrow duration is outside the allowed [MIN, MAX] window.
InvalidDuration = 32,
InvalidDuration = 43,
/// Caller is not a member of the emergency admin multi-sig set.
NotEmergencyAdmin = 33,
/// Caller has already approved this emergency release (duplicate).
Expand All @@ -90,4 +90,6 @@ pub enum Error {
InvalidLimit = 37,
/// Pagination limit exceeds maximum allowed page size.
LimitExceeded = 38,
/// Funding token is not accepted for this escrow.
TokenNotAccepted = 39,
}
Loading