Skip to content
Open
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
8 changes: 5 additions & 3 deletions CONTRACT_ERROR_SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ This document defines the standard error codes used by the SkillSync smart contr
| 13 | `TokenExpired` | Token has expired |
| 14 | `TokenRevoked` | Token has been revoked |
| 15 | `InvalidToken` | Token is invalid |
| 21 | `InsufficientBalance` | Insufficient funds for operation |
| 22 | `NegativeAmount` | Amount cannot be negative |
| 23 | `Overflow` | Arithmetic overflow occurred |
| 400 | `InvalidAmount` | Amount is zero or negative |
| 401 | `InsufficientBalance` | Insufficient funds for operation |
| 402 | `FeeTooHigh` | Fee exceeds maximum (1000 bps) |
| 403 | `InvalidSplit` | Dispute split does not sum to amount |
| 404 | `Overflow` | Arithmetic overflow occurred |
| 24 | `InvalidAsset` | Asset is not supported |
| 31 | `MentorNotFound` | Mentor profile not found |
| 32 | `MenteeNotFound` | Mentee profile not found |
Expand Down