GMX_ERROR_SELECTORS
Documentation for eth_defi.gmx.events.GMX_ERROR_SELECTORS data.
- GMX_ERROR_SELECTORS: dict[str, tuple[str, list[str]]] = {'0481a15a': ('InvalidOrderPrices', ['uint256', 'uint256', 'uint256', 'uint256']), '08c379a0': ('Error', ['string']), '10811ceb': ('InvalidPositionMarket', []), '109ef850': ('MaxLongExceeded', ['uint256', 'uint256']), '12110872': ('LiquidatablePosition', ['string', 'int256', 'int256', 'int256']), '169f0412': ('MaxPoolUsdForDepositExceeded', ['uint256', 'uint256']), '2159b161': ('InsufficientCollateralUsd', ['int256']), '23090a31': ('InsufficientPoolAmount', ['uint256', 'uint256']), '29ff3fc8': ('MaxPoolAmountExceeded', ['uint256', 'uint256']), '2b6e7c3f': ('MaxPriceAgeExceeded', ['uint256', 'uint256']), '2bf127cf': ('MaxOpenInterestExceeded', ['uint256', 'uint256']), '30779725': ('EmptyOrder', []), '315276c9': ('InsufficientReserve', ['uint256', 'uint256']), '3784f834': ('UnsupportedOrderType', ['uint256']), '3a61a4a9': ('UnableToWithdrawCollateral', ['int256']), '416f9306': ('InsufficientExecutionGas', ['uint256', 'uint256', 'uint256']), '426cfff0': ('PositionNotFound', ['bytes32']), '42c0bc84': ('MinLongTokens', ['uint256', 'uint256']), '4dfbbff3': ('EmptyPosition', []), '59485ed9': ('OrderNotFound', ['bytes32']), '5ba53cd3': ('MaxShortExceeded', ['uint256', 'uint256']), '6514b64e': ('InvalidFeedPrice', ['address', 'int256']), '677abf1c': ('OracleTimestampsAreSmallerThanRequired', ['uint256', 'uint256']), '6ce23460': ('MinMarketTokens', ['uint256', 'uint256']), '730d44b1': ('OrderAlreadyFrozen', []), '74cc815b': ('InsufficientCollateralAmount', ['uint256', 'int256']), '75885d69': ('SwapPriceImpactExceedsAmountIn', ['uint256', 'int256']), '78cd7e7a': ('InsufficientWntAmountForExecutionFee', ['uint256', 'uint256']), '794a604a': ('MaxAutoCancelOrdersExceeded', ['uint256', 'uint256']), '85efb31a': ('MinPositionSize', ['uint256', 'uint256']), '8c617982': ('InsufficientReserveForOpenInterest', ['uint256', 'uint256']), '919dd98a': ('PositionShouldNotBeLiquidated', ['string', 'int256', 'int256', 'int256']), '9319d603': ('OrderValidFromTimeNotReached', ['uint256', 'uint256']), '9c693e4e': ('InvalidCollateralTokenForMarket', ['address', 'address']), '9fbe2cbc': ('InvalidDecreaseOrderSize', ['uint256', 'uint256']), 'a196af45': ('MinShortTokens', ['uint256', 'uint256']), 'a7aebadc': ('InsufficientSwapOutputAmount', ['uint256', 'uint256']), 'a942ab62': ('MaxCollateralSumExceeded', ['uint256', 'uint256']), 'ac504dbb': ('InsufficientExecutionFee', ['uint256', 'uint256']), 'b4a196af': ('MinShortTokens', ['uint256', 'uint256']), 'be2cbc10': ('InvalidDecreaseOrderSize', ['uint256', 'uint256']), 'bff65b3f': ('InvalidPositionSizeValues', ['uint256', 'uint256']), 'c78b78fa': ('DuplicatedMarketInSwapPath', ['address']), 'cc32db99': ('NegativeExecutionPrice', ['int256', 'uint256', 'uint256', 'int256', 'uint256']), 'cd64a025': ('EmptyPrimaryPrice', ['address']), 'd28d3eb5': ('InsufficientOutputAmount', ['uint256', 'uint256']), 'e09ad0e9': ('OrderNotFulfillableAtAcceptablePrice', ['uint256', 'uint256']), 'e234604a': ('MinMarketTokens', ['uint256', 'uint256']), 'f0641c92': ('PriceImpactLargerThanOrderSize', ['int256', 'uint256']), 'f4253177': ('EmptySizeDeltaInTokens', []), 'f442c0bc': ('MinLongTokens', ['uint256', 'uint256']), 'f817118e': ('InvalidTokenIn', ['address', 'address']), 'f8c937db': ('DisabledMarket', ['address']), 'feddc084': ('InvalidKeeperForFrozenOrder', ['address'])}
GMX error selectors (computed from keccak256(“ErrorName(types…)”)[:4]) Maps 4-byte selector hex string to (error_name, parameter_types) tuple See: https://github.com/gmx-io/gmx-synthetics/blob/main/contracts/error/Errors.sol