Skip to main content

Buy GMX on TraderJoe

Context

TraderJoe is the leading DEX on Avalanche. To buy GMX token on Avalanche, we need to interact with the TraderJoe router smart contract, GMX token and wrapped AVAX token.

Interaction Implementation

The interaction has one step:

  • call the swapExactAVAXForTokens method of TraderJoe's router contract
  • Wrapped AVAX is automatically set as tokenA
  • set GMX token as tokenB

Traderjoe Swap