Comment on page
GMX - GLP
All about GLP, its integration with Dolomite, and what makes it special for GLP holders.
GLP is the GMX platform's liquidity token. It consists of an index of assets used for swaps and leverage trading. It can be minted using any index asset and burnt to redeem any index asset. The price for minting and redemption is calculated based on the following formula:
(total worth of assets in index including profits and losses of open positions) / (GLP supply)
Dolomite's integration with the GMX ecosystem exemplifies Dolomite's modularity and positioning as a public utility for other protocols to utilize. First and foremost, Dolomite's protocol does not take any fees from anything earned in the GMX ecosystem, instead passing all rewards on to the user. This includes:
- ETH rewards
- esGMX rewards
- Multiplier points
- Vesting rewards
- Any other staking or fee-based rewards
Once you have GLP in your wallet, you may deposit it into Dolomite via the
Balancespage. To deposit it, select GLP from the asset dropdown with the
Deposittab selected (shown below).
If you want to perform a full account transfer, you must do it before depositing GLP into Dolomite. If you deposit GLP into your account first, the full account transfer feature will be permanently unavailable for the wallet you were using when you made the deposit.
The deposit/withdraw panel on the lower left hand corner of the Balances page
Note, if it is your first time depositing, you will have to unlock GLP first. Once your GLP is deposited, you will be able to interact with the GMX rewards ecosystem, the same way you would normally from GMX's web application!
Depositing special assets like GLP into Dolomite results in the creation of your proxy vault. This all happens behind the scenes and occurs for each unique wallet that chooses to deposit GLP.
This proxy vault debits your Dolomite balance and gives you access to GLP virtual liquidity for use across Dolomite's various features. The proxy vault is created when you perform your first deposit or initiate a full account transfer from GMX into Dolomite.
The different rewards options can be accessed by clicking to expand the GLP row on the
The GLP row on the middle of the Balances page
Clicking on the
Asset Rewardsbutton will take you to the
Asset Rewardspanel (shown below), which was made to resemble the GMX Total Rewards panel.
The Asset Rewards panel on Dolomite
The GMX rewards interface
One change that was made to Dolomite's version of compounding or claiming rewards for the integration is allowing you to deposit the earned WETH rewards into your Dolomite account. Unchecking this box will send the rewards to your wallet instead.
The top 4 rows show you aggregate data of how much GLP, staked-GMX, and esGMX you have in your vault. This makes it convenient to see how much total GLP (or other assets) is deposited across your Dolomite Balances, borrow positions, or in any other Dolomite service.
You earn GLP rewards and yield for your entire deposit on Dolomite. Even if your GLP is spread across various Dolomite services, you're still earning based on the total amount of GLP deposited in your vault.
Staking and unstaking GMX and esGMX can be done from clicking the
Stakingbutton on the GLP row. Pressing the button will open the following modal:
The staking panel for GMX and esGMX
There are some minor distinctions between staking GMX and esGMX on Dolomite vs. the GMX interface. Importantly, staking GMX will require a token approval from the GMX token with your proxy vault's address set as the spender. Upon staking, the GMX tokens will be pulled from your wallet into the proxy vault and staked. No vanilla GMX tokens (tokens that are unstaked) are ever left in the proxy vault (they should always show as sbfGMX or vGMX). Any idle GMX left in the vault from claiming or unstaking is always sent to the vault owner's address (your wallet).
On the other hand, staking esGMX always pulls the tokens from your proxy vault and never from your wallet. Since esGMX is non-transferrable, the esGMX tokens can only ever be used in the following places:
- 1.Held in the proxy vault as esGMX
- 2.Staked from the proxy vault, which shows in the vault as sbfGMX tokens
- 3.Vested from the proxy vault, which shows in the vault as vGMX or vGLP tokens (more on this below)
No token approvals are needed to move esGMX into staking or vesting. Note, esGMX can technically, be transferred by initiating a full account transfer (more on this below).
New GMX tokens are introduced into circulation by vesting esGMX into GMX tokens. By default, all esGMX you own can be converted into GMX over the course of one year by initiating the vesting process with your staked GMX or GLP tokens.
To get started, click on the
Vestingbutton from the GLP row to open the following modal:
The vesting panel for converting esGMX into GMX
Importantly, any GLP tokens you use for vesting do not impact your virtual balances, borrow positions, or any other area on Dolomite that utilizes your virtual liquidity. Meaning, you can actively borrow against your GLP while you're using it to vest your esGMX into GMX without any limitations.
Note, if your GLP gets liquidated in any position, you may be forced to unvest your GLP that's converting esGMX into GMX before it's seized by the liquidator. This should only happen if the amount of GLP held in your proxy vault is not enough to cover the debt owed against the position that is underwater.
Dolomite is the first protocol to offer support for full account transfers into a money market protocol. Full account transfers allow the sender to transfer all of their esGMX, staked multiplier points, GLP and staked GMX to another account while not losing any of those accumulated rewards. It's an important feature to allow long-term GMX protocol users to transfer funds while not being penalized by breaking their streak.
Full account transfers can only be executed into Dolomite once per wallet address. They cannot be performed into Dolomite if you've already deposited GLP into Dolomite for the same wallet address. If you've already deposited GLP into Dolomite for the same wallet address, you'll need to do a full account transfer into Dolomite using a different wallet address.
Dolomite does not currently support transfers out of Dolomite to external addresses but may or may not add that feature at a later time.
Executing a full account transfer is a two-transaction process that requires you to start on GMX's website and finish on Dolomite:
- 1.Click the
Transfer Accountbutton the GLP row to open the
- 2.With the panel open, copy the
Receiver Addressto your clipboard. You'll need this on GMX's website.
- 3.On the
Transfer Accountpage on GMX's website, paste the
Receiver Addressyou just copied into the input field. Click
Begin Transferand confirm the transaction from your wallet. This is the first transaction (of 2 total).
- 4.Go back to Dolomite and open the
Transfer Accountpanel again. Enter your wallet address as the
Sender Address. Your wallet address can be copied to your clipboard by opening Metamask and clicking on your wallet from the top-middle toolbar of the extension .Click
Finalize Transferand confirm the transaction from your wallet. This is the second and final transaction.
The Transfer Account panel on Dolomite
The Transfer Account page on GMX
Please keep in mind that transferring an account requires a number of conditions to be met prior to the transfer executing. These include:
- The sender has no GMX being used to vest esGMX into GMX
- The sender has no GLP being used to vest esGMX into GMX.
- The receiver has not staked GMX tokens before
- The receiver has not staked GLP tokens before
If any of these conditions does not pass, you won't be able to execute the transfer. As shown in the Transfer Account image above from the Dolomite interface, any failing conditions will be shown with an
next to it to make the error more clear to you.
Dolomite's implementation also subtracts 75 basis points from the price to reflect the cost to liquidate GLP by redeeming it for an underlying asset (most likely
Getting liquidated for any GLP you have in a borrow position will result in the GLP you hold being seized by the liquidator and sold off using the normal collateral calculations, as explained in Liquidations. Importantly, only the GLP is seized though. All esGMX, staked-GMX, multiplier points, ETH rewards, etc. are kept in your vault and are never taken by the liquidator under any circumstance.
Dolomite never takes your rewards when a complex collateral asset is liquidated. Only the collateral asset is ever taken.
There are no special fees for using your GLP or GMX tokens on Dolomite. You keep 100% of the ETH rewards, multiplier points, staking rewards, esGMX, and vesting.
On a fundamental level, we believe users, institutions, and protocols that want to run their own strategies shouldn't be hampered by Dolomite cutting into their strategy's viability by taking a portion of the rewards on a protocol-level.