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

GmxAdapterLib

Overview

License: Apache-2.0-or-later

library GmxAdapterLib

Errors info

MaxGmxPositionsReached

error MaxGmxPositionsReached()

GmxRouterNotAuthorized

error GmxRouterNotAuthorized()

Functions info

assertRouterAuthorized

function assertRouterAuthorized() internal view

Reverts if the GMX ExchangeRouter lost the CONTROLLER role (e.g. after a GMX contract rotation), which would make order writes and claims revert downstream.

computeExecutionFee

getMarketTokens

getMarketIndexToken

isIndexTokenPriced

assertPositionLimitNotReached

isMarketActive

hasClaimableFundingFees

claimableCollateralAmount

Last updated