Router
The following table outlines potential errors that may occur during interactions with the router contract in GnoSwap:
GNOSWAP-ROUTER-001
Caller has no permission
Occurs when a user without the required permissions attempts an action restricted to authorized callers.
GNOSWAP-ROUTER-002
Slippage check failed
Occurs when the execution price deviates beyond the user’s specified slippage tolerance, causing the transaction to fail.
GNOSWAP-ROUTER-003
Invalid routes and quotes
Occurs when requsted routes and quote does not match length.
GNOSWAP-ROUTER-004
Transaction Expired
Occurs when transaction failed due to expiration.
GNOSWAP-ROUTER-005
Invalid input data
Occurs when input data does not match the expected format or parameters, making the operation invalid.
GNOSWAP-ROUTER-006
Invalid pool fee tier
Occurs when the pool fee tier specified in the transaction is not valid for pool.
GNOSWAP-ROUTER-007
Invalid swap fee
Occurs when the swap fee specified in the transaction is not valid for the operation or pool.
GNOSWAP-ROUTER-008
Invalid swap type
Occurs when an unsupported or incorrect swap type is specified, causing the transaction to fail.
GNOSWAP-ROUTER-009
Invalid pool path
Occurs when an invalid or non-existent pool path is referenced in the transaction.
GNOSWAP-ROUTER-010
Wrap, unwrap failed
Occurs when an attempt to wrap or unwrap tokens fails, potentially due to insufficient balance or invalid input.
GNOSWAP-ROUTER-011
Less than minimum amount
Occurs when the amount provided for an operation is below the minimum allowed for wugnot tokens.
GNOSWAP-ROUTER-012
Quote parse failed
Occurs when swap routes can not execute 100% amount of requested.
GNOSWAP-ROUTER-013
Number of hops must be 1~3
Occurs when single path unsupported number of hops.
Last updated
Was this helpful?