GMX_ERROR_PARAM_LABELS

Documentation for eth_defi.gmx.events.GMX_ERROR_PARAM_LABELS data.

GMX_ERROR_PARAM_LABELS: dict[str, list[str]] = {'DisabledMarket': ['market'], 'DuplicatedMarketInSwapPath': ['market'], 'EmptyPrimaryPrice': ['token'], 'Error': ['message'], 'InsufficientCollateralAmount': ['collateralAmount', 'minCollateral'], 'InsufficientCollateralUsd': ['collateralUsd'], 'InsufficientExecutionFee': ['required', 'provided'], 'InsufficientExecutionGas': ['gasLimit', 'gasLeft', 'minHandleErrorGas'], 'InsufficientGasForCancellation': ['gasLeft', 'minRequired'], 'InsufficientOutputAmount': ['minOutput', 'actualOutput'], 'InsufficientPoolAmount': ['required', 'available'], 'InsufficientReserve': ['required', 'available'], 'InsufficientReserveForOpenInterest': ['required', 'available'], 'InsufficientSwapOutputAmount': ['minOutput', 'actualOutput'], 'InsufficientWntAmountForExecutionFee': ['required', 'provided'], 'InvalidCollateralTokenForMarket': ['collateralToken', 'market'], 'InvalidDecreaseOrderSize': ['sizeDelta', 'remainingPosition'], 'InvalidFeedPrice': ['token', 'price'], 'InvalidKeeperForFrozenOrder': ['keeper'], 'InvalidOrderPrices': ['minPrice', 'maxPrice', 'triggerPrice', 'orderType'], 'InvalidPositionSizeValues': ['size', 'collateral'], 'InvalidTokenIn': ['tokenIn', 'market'], 'LiquidatablePosition': ['reason', 'minCollateralFactor', 'remainingCollateralUsd', 'minCollateralUsd'], 'MaxAutoCancelOrdersExceeded': ['count', 'maxCount'], 'MaxCollateralSumExceeded': ['currentSum', 'maxSum'], 'MaxLongExceeded': ['currentLong', 'maxLong'], 'MaxOpenInterestExceeded': ['currentOI', 'maxAllowed'], 'MaxPoolAmountExceeded': ['currentAmount', 'maxAmount'], 'MaxPoolUsdForDepositExceeded': ['currentUsd', 'maxUsd'], 'MaxPriceAgeExceeded': ['oracleAge', 'maxAge'], 'MaxShortExceeded': ['currentShort', 'maxShort'], 'MinLongTokens': ['received', 'minExpected'], 'MinMarketTokens': ['received', 'minExpected'], 'MinPositionSize': ['sizeDelta', 'minSize'], 'MinShortTokens': ['received', 'minExpected'], 'NegativeExecutionPrice': ['executionPrice', 'price', 'positionSizeInUsd', 'priceImpactUsd', 'sizeDeltaInTokens'], 'OracleTimestampsAreSmallerThanRequired': ['oracleTimestamp', 'requiredTimestamp'], 'OrderNotFound': ['orderKey'], 'OrderNotFulfillableAtAcceptablePrice': ['executionPrice', 'acceptablePrice'], 'OrderValidFromTimeNotReached': ['currentTime', 'validFromTime'], 'PositionNotFound': ['positionKey'], 'PositionShouldNotBeLiquidated': ['reason', 'minCollateralFactor', 'remainingCollateralUsd', 'minCollateralUsd'], 'PriceImpactLargerThanOrderSize': ['priceImpact', 'orderSize'], 'SwapPriceImpactExceedsAmountIn': ['amountIn', 'priceImpact'], 'UnableToWithdrawCollateral': ['collateralUsd'], 'UnsupportedOrderType': ['orderType']}

Human-readable parameter labels for all GMX custom errors. Each entry maps error_name -> list of label strings in the same order as GMX_ERROR_SELECTORS params. Used by decode_error_reason() to produce annotated output like MaxOpenInterestExceeded(currentOI: $219.64, maxAllowed: $1.00) instead of bare positional values.