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

GmxCallbackLib

Overview

License: Apache-2.0-or-later

library GmxCallbackLib

Structs info

ClaimableCollateralInfo

struct ClaimableCollateralInfo {
	address token;
	address market;
	uint256 timeKey;
}

Metadata for a recorded claimable-collateral DataStore key.

GmxCallbackSlot

struct GmxCallbackSlot {
	Bytes32Set trackedMarkets;
	Bytes32Set claimableCollateralKeys;
	mapping(bytes32 => GmxCallbackLib.ClaimableCollateralInfo) claimableCollateralInfo;
}

Storage layout for the GMX callback extension.

Errors info

InvalidCallbackAccount

Functions info

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