5/5
## Shifting Your GM Token Positions on GMX V2 The GMX V2 platform offers a powerful "Shift" feature for managing your liquidity positions within GM (GMX Market) Pools. This function allows you to efficiently move your GM tokens directly from one pool to another eligible pool, effectively changing your market exposure without incurring the standard swap fees associated with selling tokens from one pool and buying into another. Before utilizing the Shift function, it's essential to understand these core components: * **GM Pools:** These are the specific liquidity pools on GMX V2 designed for trading individual markets (e.g., LDO/USD, ETH/USD). Each pool is backed by a defined set of underlying assets (indicated in brackets, like [WETH-USDC]). By providing liquidity to these pools, users earn fees generated from swaps and leverage trading activities within that market. * **GM Tokens:** When you provide liquidity to a GM Pool, you receive corresponding GM tokens. These are ERC-20 tokens representing your proportional share of that specific pool. Holding GM tokens entitles you to a share of the pool's generated fees (APY) and exposes you to the price movements of the underlying assets within the pool's composition. **Understanding the Shift Functionality** Distinct from the "Buy" or "Sell" actions for GM tokens, the "Shift" function is specifically designed to facilitate the direct exchange of GM tokens *between* different GM pools. Its primary advantage lies in allowing liquidity providers to reallocate their capital across various GMX markets efficiently, often bypassing the typical swap fees encountered when exiting one position (selling) and entering another (buying). **Step-by-Step Guide: Shifting GM Tokens (Example: LDO/USD to ETH/USD)** Let's walk through an example of shifting liquidity from the LDO/USD pool to the ETH/USD pool. 1. **Navigate to GM Pools:** Access the GMX V2 interface and locate the list of available GM Pools. You can typically see your current holdings in the "WALLET" column for each pool. In this example, we start with `5.0133` GM tokens in the `LDO/USD [WETH-USDC]` pool, valued at `$4.25`. 2. **Initiate the Shift:** Find the row corresponding to the pool you wish to shift *from* (the source pool, LDO/USD in this case). Click the **"Shift"** button associated with that pool. 3. **Configure the Shift:** The "Shift GM" interface will appear. * **Source (Pay):** The interface will automatically identify your source pool (`GM: LDO/USD`) and display your available balance (`5.0133`). * **Destination (Receive):** Select the target pool you wish to shift *to* (`GM: ETH/USD`). * **Specify Amount:** Enter the amount of source GM tokens you want to shift. Clicking **"MAX"** will populate the field with your entire balance (`5.0133` LDO/USD GM tokens). * **Review Quote:** The interface will estimate the amount of destination GM tokens you will receive (e.g., `~3.072 GM: ETH/USD`). Note that the value should remain approximately the same (e.g., `$4.25`), excluding network gas fees. 4. **Approve Token Spending (If Required):** * Since GM tokens are ERC-20 tokens, you must grant the GMX smart contract permission to access and move your source GM tokens *before* the first shift operation, or if your previous allowance was insufficient. * Click the button labeled similar to **"Allow GM: LDO/USD [WETH-USDC] to be spent"**. * Your connected wallet (e.g., MetaMask) will prompt you to confirm a **"Spending cap request"**. Review the request and click **"Confirm"** in your wallet. Wait for this approval transaction to confirm on the blockchain. 5. **Execute the Shift:** * Once the approval transaction is confirmed, the button on the GMX interface will change to **"Shift GM"**. * Click **"Shift GM"**. * Your wallet will again prompt you, this time to confirm the actual shift transaction. Review the details (including gas fees) and click **"Confirm"** in your wallet. 6. **Monitor Confirmation:** The GMX interface will typically display notifications indicating the progress of your shift transaction (e.g., "Shift request sent," "Fulfilling shift request," "Shift order executed"). 7. **Verify the Result:** Once the shift transaction is successfully confirmed on the blockchain, return to the main GM Pool list. Your balances in the "WALLET" column should reflect the change: * Source Pool (LDO/USD): `0.0000 ($0.00)` * Destination Pool (ETH/USD): `3.0718 ($4.25)` (or the equivalent amount received) You have now successfully moved your liquidity position from the LDO/USD market to the ETH/USD market using the Shift function. **Key Considerations:** * **Purpose-Built:** The "Shift" function is exclusively for swapping GM tokens between different GM pools. It cannot be used for buying or selling GM tokens for other assets like USDC or ETH directly. * **ERC-20 Approval:** Remember that the initial spending approval transaction is a necessary security step required by the ERC-20 token standard for interacting with smart contracts. You only need to do this once per token per contract, or if you wish to increase a previously set spending limit. **Primary Use Case:** The Shift function provides a streamlined method for liquidity providers on GMX V2 to rebalance their portfolio across different markets. It allows for adjusting market exposure (e.g., moving from a volatile asset pool to a more stable one, or vice-versa) or chasing higher yield opportunities without needing to exit the GM token ecosystem entirely or pay standard swap fees for the reallocation.
An efficient walkthrough to Using the GMX V2 Shift Feature - Discover how to seamlessly move your GM token liquidity between different market pools on GMX. Master the fee-saving 'Shift' function and the required ERC-20 approval steps.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Cyfrin Updraft has partnered with GMX to provide SSCD+ certifications vouchers to the first 25 students who demonstrate the completion of this course and are building on top of GMX. Join the GMX Discord server to redeem your coupon, or navigate to the docs to learn more!
Course Overview
About the course
Mechanics and contract architecture of the GMX protocol
Token pricing and fees
Liquidity: GM pools and GLV vaults
Math, funding rates, liquidation pricing, P&L calculations
Limit orders, take profit orders, stop loss, and stop market orders
Auto-cancel and auto-deleveraging
GLP, esGMX, GMX staking and delegation
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Security researcher
$49,999 - $120,000 (avg. salary)
Last updated on June 26, 2025
Duration: 8min
Duration: 1h 19min
Duration: 1h 24min
Duration: 16min
Duration: 11min
Duration: 11min
Duration: 6min
Course Overview
About the course
Mechanics and contract architecture of the GMX protocol
Token pricing and fees
Liquidity: GM pools and GLV vaults
Math, funding rates, liquidation pricing, P&L calculations
Limit orders, take profit orders, stop loss, and stop market orders
Auto-cancel and auto-deleveraging
GLP, esGMX, GMX staking and delegation
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Security researcher
$49,999 - $120,000 (avg. salary)
Last updated on June 26, 2025