Position

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.

GNOSWAP-POSITION-011

Position with same positionId already exists

Occurs when user mints a new position, but positionId did not updated.

GNOSWAP-POSITION-012

Invalid Address

Occurs when requested address is invalid.

GNOSWAP-POSITION-013

Position does not exist

Occurs when request position does not exist.

GNOSWAP-POSITION-014

No UGNOTs were sent

Occurs when user mints a new position with ugnot, but did not sent any.

GNOSWAP-POSITION-015

Insufficient UGNOT provided

Occurs when user mints a new position with ugnot, but did not sent with requested amount.

GNOSWAP-POSITION-016

Invalid Token Address

Occurs when request token path is invalid.

GNOSWAP-POSITION-017

Invalid Liquidity Ratio

Occurs when request ratio is greater than 100.

GNOSWAP-POSITION-018

Underflow

Occurs when mathematical results overflows numeric range.

GNOSWAP-POSITION-019

Invalid Liquidity

Occurs when handling liquditiy more than position has.

Last updated

Was this helpful?