-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #307 from invariant-labs/add-error-codes
Added invariant error codes
- Loading branch information
Showing
9 changed files
with
103 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: Invariant Errors | ||
|
||
slug: /aleph_zero/invariant_errors | ||
--- | ||
|
||
This section outlines error codes essential for maintaining the integrity of Aleph Zero operations. These codes provide insights into specific issues encountered during interactions with the platform. | ||
|
||
| ErrorCode | Description | | ||
|--------------------------------|---------------------------------------------------------------------------| | ||
| NotAdmin | Unauthorized user attempts to invoke an admin-only message | | ||
| PoolAlreadyExist | Attempted creation of a pool with same tokens (order does not matter) and same fee tier that already exists | | ||
| PoolNotFound | Unable to retrieve the state of the specified pool | | ||
| InvalidTickIndexOrTickSpacing | Attempt to create a tick with an out-of-bounds index or incorrect spacing | | ||
| PositionNotFound | Unable to retrieve the state of the specified position | | ||
| TickNotFound | Unable to retrieve the state of the specified tick | | ||
| FeeTierNotFound | Unable to retrieve the state of the specified fee tier | | ||
| AmountIsZero | Attempted swap with zero tokens on input or output depending of swap direction| | ||
| WrongLimit | Attempted swap with an incorrect price limit | | ||
| PriceLimitReached | Swap would exceed the specified limit | | ||
| NoGainSwap | User would receive zero tokens after the swap | | ||
| InvalidTickSpacing | Attempted creation of a fee tier with incorrect tick spacing | | ||
| FeeTierAlreadyAdded | Fee tier is already added | | ||
| NotFeeReceiver | Unauthorized user attempts to withdraw protocol fee | | ||
| ZeroLiquidity | Attempted opening of a position with zero liquidity | | ||
| TransferError | PSP22 token transfer could not be performed | | ||
| TokensAreSame | Attempted creation of a pool with exactly the same tokens | |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c281b0d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
protocol – ./
www.docs.invariant.app
protocol-git-master-invariantlabs.vercel.app
docs.invariant.app
protocol-invariantlabs.vercel.app