Position
Last updated
Last updated
The following table outlines potential errors that may occur during interactions with the position contract in GnoSwap:
Code | Error | Description |
---|---|---|
GNOSWAP-POSITION-001
Caller has no permission
Occurs when a user without the necessary permissions attempts an action that requires authorization within the position contract.
GNOSWAP-POSITION-002
Slippage failed
Occurs when the actual execution price deviates beyond the allowed slippage tolerance specified by the user.
GNOSWAP-POSITION-003
Wrap,unwrap failed
Occurs when an attempt to wrap or unwrap tokens fails, potentially due to invalid inputs or insufficient token balance.
GNOSWAP-POSITION-004
Out of range for numeric value
Occurs when a numeric input, such as a token amount or price, exceeds the acceptable range for the operation.
GNOSWAP-POSITION-005
Invalid input data
Occurs when input data does not meet the expected format or values, making the operation invalid.
GNOSWAP-POSITION-006
Requested data not found
Occurs when the system is unable to locate the requested data related to a specific position.
GNOSWAP-POSITION-007
Transaction expired
Occurs when a transaction is attempted after its designated expiration time, making it invalid.
GNOSWAP-POSITION-008
Can not wrap less than minimum amount
Occurs when the user attempts to wrap an amount below the minimum allowed, which is not permissible.
GNOSWAP-POSITION-009
Position is not clear
Occurs when a position is not in a finalized state, preventing certain operations from proceeding.
GNOSWAP-POSITION-010
Zero liquidity
Occurs when an operation that requires positive liquidity is attempted with zero liquidity.