get_gmx_arbitrum_addresses

Documentation for eth_defi.gmx.whitelist.get_gmx_arbitrum_addresses function.

get_gmx_arbitrum_addresses()

Resolve the GMX contract addresses for Arbitrum mainnet.

Unlike GMX_ARBITRUM_ADDRESSES, which duplicates the addresses as literals and can drift, this reads eth_defi.gmx.contracts.PINNED_CONTRACTS through eth_defi.gmx.contracts.get_contract_addresses(), honouring the GMX_CONTRACT_RELEASE pin.

Returns

Dictionary with keys exchange_router, synthetics_router, order_vault.

Raises

ValueError – If the configured release or chain is not supported.

Return type

dict[str, eth_typing.evm.HexAddress]