For the complete documentation index, see llms.txt. This page is also available as Markdown.

GmxCallbackLib

GmxCallbackLib

Storage layout and helpers for the GMX v2 order callback extension. The data is stored in the pool proxy and updated by EGmxCallback when GMX keepers execute, cancel, or freeze orders.

All state is ERC-7201 namespaced; MixinStorage asserts the slot.

GMX_CALLBACK_DATA_SLOT

bytes32 GMX_CALLBACK_DATA_SLOT

ERC-7201 slot for GMX callback data.

Must stay in sync with MixinStorage assertion.

CLAIMABLE_FUNDING_AMOUNT_KEY

bytes32 CLAIMABLE_FUNDING_AMOUNT_KEY

GMX v2 DataStore keys used by the callback extension and NAV accounting.

CLAIMABLE_COLLATERAL_AMOUNT_KEY

bytes32 CLAIMABLE_COLLATERAL_AMOUNT_KEY

CLAIMABLE_COLLATERAL_FACTOR_KEY

bytes32 CLAIMABLE_COLLATERAL_FACTOR_KEY

CLAIMABLE_COLLATERAL_REDUCTION_FACTOR_KEY

CLAIMED_COLLATERAL_AMOUNT_KEY

CLAIMABLE_COLLATERAL_TIME_DIVISOR_KEY

CLAIMABLE_COLLATERAL_DELAY_KEY

InvalidCallbackAccount

ClaimableCollateralInfo

Metadata for a recorded claimable-collateral DataStore key. The factor/reduction/claimed keys are recomputed at NAV time to minimize callback gas costs.

GmxCallbackSlot

Storage layout for the GMX callback extension.

gmxCallbackData

Returns the GMX callback storage slot for the current pool.

addTrackedMarket

Adds market to the tracked-markets set.

removeTrackedMarket

Removes market from the tracked-markets set.

containsTrackedMarket

Returns true when market is in the tracked-markets set.

trackedMarketsCount

Returns the number of tracked markets.

trackedMarketAt

Returns the tracked market at index.

removeClaimableCollateralKey

Removes a fully-claimed collateral key from the tracked set and metadata map.

Last updated