# 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.                    |
| 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 | Invalid input data                           | Occurs when input data does not meet the expected format or values, making the operation invalid.                       |
| GNOSWAP-POSITION-005 | Requested data not found                     | Occurs when the system is unable to locate the requested data related to a specific position.                           |
| GNOSWAP-POSITION-006 | Transaction expired                          | Occurs when a transaction is attempted after its designated expiration time, making it invalid.                         |
| GNOSWAP-POSITION-007 | Cannot wrap less than minimum amount         | Occurs when the user attempts to wrap an amount below the minimum allowed, which is not permissible.                    |
| GNOSWAP-POSITION-008 | Position is not clear                        | Occurs when a position is not in a finalized state, preventing certain operations from proceeding.                      |
| GNOSWAP-POSITION-009 | Zero liquidity                               | Occurs when an operation that requires positive liquidity is attempted with zero liquidity.                             |
| GNOSWAP-POSITION-010 | Position with same positionId already exists | Occurs when user mints a new position, but positionId did not update.                                                   |
| GNOSWAP-POSITION-011 | Invalid address                              | Occurs when requested address is invalid.                                                                               |
| GNOSWAP-POSITION-012 | Position does not exist                      | Occurs when request position does not exist.                                                                            |
| GNOSWAP-POSITION-013 | No UGNOTs were sent                          | Occurs when user mints a new position with ugnot, but did not send any.                                                 |
| GNOSWAP-POSITION-014 | Insufficient UGNOT provided                  | Occurs when user mints a new position with ugnot, but did not send with requested amount.                               |
| GNOSWAP-POSITION-015 | Invalid token address                        | Occurs when request token path is invalid.                                                                              |
| GNOSWAP-POSITION-016 | Underflow                                    | Occurs when mathematical results underflow numeric range.                                                               |
| GNOSWAP-POSITION-017 | Overflow                                     | Occurs when mathematical results overflow numeric range.                                                                |
| GNOSWAP-POSITION-018 | Invalid liquidity                            | Occurs when handling liquidity more than position has.                                                                  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gnoswap.io/contracts/errors/position.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
