GMX 백서

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 45쪽 중 39쪽

bonding, and treasury contracts: - GMX Bonds (Arbitrum): [0xea8a734db4c7EA50C32B5db8a0Cb811707e8ACE3](https://arbiscan.io/address/0xea8a734db4c7EA50C32B5db8a0Cb811707e8ACE3) - GMX Vester (Arbitrum): [0x199070DDfd1CFb69173aa2F7e20906F26B363004](https://arbiscan.io/address/0x199070DDfd1CFb69173aa2F7e20906F26B363004) - GLP Vester (Arbitrum): [0xA75287d2f8b217273E7FCD7E86eF07D33972042E](https://arbiscan.io/address/0xA75287d2f8b217273E7FCD7E86eF07D33972042E) - Affiliate Vester (Arbitrum): [0x7c100c0F55A15221A4c1C5a25Db8C98A81df49B2](https://arbiscan.io/address/0x7c100c0F55A15221A4c1C5a25Db8C98A81df49B2) - Treasury (Arbitrum): [0x68863dDE14303BcED249cA8ec6AF85d4694dea6A](https://arbiscan.io/address/0x68863dDE14303BcED249cA8ec6AF85d4694dea6A) - GMX Vester (Avalanche): [0x472361d3cA5F49c8E633FB50385BfaD1e018b445](https://snowtrace.io/address/0x472361d3cA5F49c8E633FB50385BfaD1e018b445) - GLP Vester (Avalanche): [0x62331A7Bd1dfB3A7642B7db50B5509E57CA3154A](https://snowtrace.io/address/0x62331A7Bd1dfB3A7642B7db50B5509E57CA3154A) - Affiliate Vester (Avalanche): [0x754eC029EF9926184b4CFDeA7756FbBAE7f326f7](https://snowtrace.io/address/0x754eC029EF9926184b4CFDeA7756FbBAE7f326f7) </details> ## Ethereum bridging GMX tokens can be bridged between Ethereum and Arbitrum using the Arbitrum bridge. Bridging from Arbitrum to Ethereum has a 7-day waiting period during which you don't have access to your tokens. All GMX features are on Arbitrum, so there is rarely a reason to bridge to Ethereum. For step-by-step instructions, see [this bridging guide](https://gist.github.com/xvi10/6125b5fbd73f12a2bfce9b729a52255a). ## Next steps - [Rewards](./rewards.md) — Learn about esGMX, vesting, and managing rewards. - [Voting power](../governance/voting-power.md) — Participate in protocol governance. - [Fees](../trading/fees.md) — Understand how trading fees are generated and distributed. - [Earn page](https://app.gmx.io/#/earn) — Start staking GMX. --- ## Rewards Staking GMX earns you a share of protocol fees. 27% of fees from leverage trading, liquidations, borrowing fees, and swaps are used to buy back GMX on the open market — a mechanism approved by the DAO [Tally vote](https://www.tally.xyz/gov/gmx/proposal/81921330482579592877925554009800798217173652653143694483196169672340561914053). Staking also grants [voting power](../governance/voting-power.md) in protocol governance. You can stake and manage rewards on the [Earn](https://app.gmx.io/#/earn) page. For more on the GMX token, see [GMX token](./gmx-token.md). :::note GMX staking rewards are accumulating in the Treasury. Bought-back GMX will be distributed to stakers when GMX reaches $90. Your share of accumulated rewards is based on [staking power](#staking-power). The APR display on the Earn page shows "Accumulating" while distribution is suspended. ::: ## Staking Power Staking power determines each staker's share of accumulated Treasury rewards. It accrues continuously based on the amount staked and the duration of staking. Your current staking power is shown on the GMX asset card on the [Earn](https://app.gmx.io/#/earn) page. You can also query staking power data programmatically through the [GMX API](../api/overview.md) (`GET /staking/power`) or [GraphQL](../api/graphql.mdx). When enough buyback history is available, the GMX asset card also shows a wallet-specific **Est. APR**. The estimate averages the GMX accrued during the four most recent complete weeks with non-zero accrual, annualizes that weekly pace by multiplying it by 52, allocates the projected amount using your share of total network staking power, and divides it by your current staked GMX and esGMX. This is a best-effort estimate, not a promised yield; any future distribution remains subject to DAO governance. ### How Power Accrues The system computes staking power as a continuous time-weighted integral of your staked balance (both GMX and esGMX in the StakedGmxTracker). Power accrues every second rather than through periodic snapshots. On each stake or unstake event, the system updates your accumulated power: ``` accumulatedPower += currentBalance × (eventTimestamp − lastUpdateTimestamp) ``` A user who stakes 1,000 GMX for 90 days without changes accumulates power equal to `1,000 × 90 days` of staking. Your share of Treasury rewards equals your cumulative power divided by the total network power across all stakers. Power accrual began on March 4, 2026, when the last bought-back GMX reward distribution ended. ### Loyalty Threshold A loyalty system protects against large unstaking events. Loyalty tracking started on March 25, 2026, at which point the system began tracking each address's peak staked balance. If the staked balance drops below 80% of this peak, all accumulated power resets to zero. The address's historical peak is then reset to its new staked balance, and power begins accruing again from zero from that point. Key details: - After a reset, previous accumulation is lost and is not restored. This means the address loses the previously accumulated share of the GMX-at-$90 distribution and starts rebuilding from zero - Forfeited power is removed from the total network power. Because each staker's share equals their own power divided by the total, reducing the total automatically increases every remaining staker's share proportionally — there is no separate redistribution step - After a reset, the address's current balance becomes its new historical peak - Staking additional tokens raises the historical peak and the 80% threshold accordingly - Unstaking esGMX to deposit it into a vesting vault lowers the tracked staked balance. If that drop puts the address below 80% of its historical peak, accumulated power resets to zero - Staking power and loyalty tracking are independent per address; accumulated power and historical peak do not carry across wallets - Vesting completion (esGMX converting to GMX within a single transaction) does not trigger false resets ### Full account transfers A full account transfer requires two account-transfer transactions. The sender calls `signalTransfer` to register the receiving wallet; this step doesn't move account balances or change staking power. The receiver then calls `acceptTransfer` to complete the supported account transfer. The app may require separate token approval transactions before the sender can call `signalTransfer`. After the transfer, GMX synchronizes governance voting power with each wallet's resulting staked balance. Staking power and loyalty history remain tied to each address. The transfer doesn't copy the sender's accumulated power or historical maximum to the receiver. When the sender's tracked GMX and esGMX stake moves away, the sender's loyalty record follows the normal 80% threshold rule. If the balance falls below the threshold, accumulated power resets, and the remaining balance becomes the new historical maximum. The incoming stake is applied to the receiver's existing staking-power record. A receiving wallet with no prior staking-power history starts with zero accumulated power, and the incoming tracked stake establishes its initial historical maximum. If the receiving wallet already has staking-power history, that history remains in place. ## Escrowed GMX Escrowed GMX (esGMX) is a non-transferable token that was historically awarded as an incentive for GMX staking, GLP, referrals, and other programs. Stakers now receive GMX directly through the buyback mechanism rather than esGMX. Existing esGMX can be used in two ways: - Staked for staking power — each staked esGMX token contributes to [staking power](#staking-power) the same way as a staked GMX token - Vested to become GMX tokens over a period of one year (365 days) esGMX is not transferrable unless you are doing a [full account transfer](https://app.gmx.io/#/begin_account_transfer). The amount of GMX or GLP required to vest esGMX is unique per account, and the maximum amount of esGMX that can be vested is capped to the esGMX rewards received by that account. :::note GLP is a legacy liquidity token that preceded GM and GLV pools. While GLP is no longer available for new minting, GLP vesting vaults remain active for users with existing esGMX earned through GLP staking. ::: ## Vesting Escrowed GMX (esGMX) tokens can be converted into GMX tokens through vesting on the [Earn](https://app.gmx.io/#/earn) page. There are two separate vesting vaults — one for esGMX earned from GMX staking (GMX Vault) and one for esGMX earned from GLP staking (GLP Vault). Each vault tracks its own balances, reserved tokens, and vesting progress independently. The [v1 Earn page](https://v1.app.gmx.io/#/earn) displays both vaults as separate cards, so you can see the breakdown of your esGMX by source. When vesting is initiated, the average amount of GMX or GLP tokens used to earn the esGMX rewards is reserved. For example, if you staked 1,000 GMX and earned 100 esGMX tokens, then to vest 100 esGMX tokens, 1,000 GMX tokens are reserved. To vest 50 esGMX, 500 GMX tokens are reserved. The actual ratio depends on the average staked amount and rewards earned for your account. Key details: - esGMX tokens that have been unstaked and deposited for vesting stop counting toward staking power. Staked GMX or esGMX tokens that are reserved for vesting remain in the staked balance and continue to count toward staking power and the GMX-at-$90 Treasury distribution. - If you unstake esGMX to start vesting it, those unstaked tokens stop counting toward staking power. If that drop puts the address below 80% of its historical peak staked balance, accumulated power resets to zero. - After initiating vesting, esGMX tokens are converted into GMX every second and fully vest over 365 days. Vested GMX tokens are claimable at any time. - If you sell GMX or GLP tokens and want to vest your esGMX rewards later, you need to re-buy the GMX or GLP tokens. - GMX and esGMX can be used interchangeably for the required reserve amount. - Depositing into the vesting vault while existing vesting is ongoing is supported. ### Withdrawing from vesting Tokens reserved for vesting can't be unstaked or sold. To unreserve them, use the "Withdraw" button on the [Earn](https://app.gmx.io/#/earn) page. Partial withdrawals are not supported — withdrawing unreserves all tokens and pauses vesting. Any esGMX tokens that had already vested into GMX remain as GMX tokens. ## Next steps - [GMX token](./gmx-token.md) — Token addresses, supply, and staking details. - [Voting power](../governance/voting-power.md) — Participate in protocol governance. - [Earn page](https://app.gmx.io/#/earn) — Stake GMX and manage rewards. --- ## Direct URLs The GMX frontend supports direct URLs that pre-fill trade parameters, letting you share specific trading configurations or deep-link users into a particular state. ## Trade parameters Use the `/trade/:tradeType` path to open the trade page with pre-selected settings. The trade type is an optional URL path segment, not a query parameter. If you omit it or use an unrecognized value (for example, `/trade?to=btc`), the trade page keeps its current trade type. About two seconds after the trade parameters are applied, the app removes `mode`, `from`, `to`, `market`, `pool`, and `collateral` from the URL. Other query parameters, such as `utm_source`, stay in the URL, and the `ref` referral parameter is removed once the referral code is stored. Canonical GMX URLs don't include `#`. Legacy `#/...` links remain supported and are rewritten to path URLs without reloading the page. | Parameter | Location | Description | Accepted values | | ---------------- | --------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------- | | `tradeType` | Path segment | The type of trade | `long`, `short`, `swap` (case-insensitive) | | `mode` | Query parameter | The order mode | `market`, `limit`, `stopmarket`, `trigger`, `twap` (case-insensitive); `tpsl` is an alias for `trigger` | | `from` | Query parameter | The token used for payment | Token symbol such as `eth`, `btc`, `usdc` (case-insensitive) | | `to` or `market` | Query parameter | The asset to long, short, or swap to | Token symbol such as `eth`, `btc`, `uni` (case-insensitive); `to` and `market` are interchangeable | | `collateral` | Query parameter | The collateral asset | Token symbol such as `eth`, `usdc`, `usdt` (case-insensitive) | | `pool` | Query parameter | The liquidity pool for the trade | Pool name such as `weth-usdc`, `btc-usdc` (case-insensitive) | | `chainId` | Query parameter | Triggers a network switch on load | `42161` (Arbitrum), `43114` (Avalanche), `4326` (MegaETH), or a GMX Account source chain: `1` (Ethereum), `8453` (Base), `56` (BNB) | :::note Not all order modes are available for every trade type. `Stop Market` is only available for long and short positions. `TWAP` is available for long, short, and swap trades. Swaps do not support `Stop Market`. ::: The `chainId` parameter works on any app page, not only the trade page. When a trade link includes it, the app switches networks first and then applies the trade parameters. For a GMX Account source chain, the app may also switch your GMX Account settlement chain to one that supports that source chain. Unsupported chain IDs are ignored, and the app removes `chainId` from the URL after handling it. If your smart wallet isn't available on the requested chain, the app shows an error message instead of switching. ### Examples - `https://app.gmx.io/trade/long?mode=limit&from=eth&market=sol` - `https://app.gmx.io/trade/short?mode=limit&from=eth&to=btc` - `https://app.gmx.io/trade/short?mode=market&from=eth&to=btc&collateral=usdc` - `https://app.gmx.io/trade/short?mode=market&from=eth&to=sol&collateral=usdc&pool=sol-usdc` ## GM pools parameters Use the `/pools/details` path to open a specific GM pool with a pre-selected operation and mode. The `market` parameter must be the pool's contract address, not a token symbol. | Parameter | Description | Accepted values | | ----------- | ----------------------------------- | ------------------------------------------------- | | `market` | The GM or GLV pool to open | Contract address (hex) of the market or GLV token | | `operation` | The deposit or withdrawal direction | `Deposit`, `Withdrawal`, `Shift` (case-sensitive) | | `mode` | The deposit or withdrawal mode | `Single`, `Pair` (case-sensitive) | :::warning The `operation` and `mode` values are case-sensitive. `Deposit`, `Withdrawal`, `Shift`, `Single`, and `Pair` must be capitalized exactly as shown. Values in any other case are ignored and the page opens with its default state. ::: ### Examples - `https://app.gmx.io/pools/details?market=0x450bb6774Dd8a756274E0ab4107953259d2ac541&operation=Deposit&mode=Single` - `https://app.gmx.io/pools/details?market=0x450bb6774Dd8a756274E0ab4107953259d2ac541&operation=Withdrawal&mode=Pair` - `https://app.gmx.io/pools/details?market=0x450bb6774Dd8a756274E0ab4107953259d2ac541&operation=Deposit&mode=Pair` --- ## Fees(Trading) This page covers all fees on GMX, including trading fees, swap fees, price impact, funding, borrowing, and network fees. ## Open / close fees The position fee is 0.04% or 0.06% of the position size. It applies when opening, closing, increasing, or partially decreasing a position. The rate depends on whether your trade improves the balance between long and short open interest: - 0.04% — your trade reduces the absolute difference between long and short open interest - 0.06% — your trade increases the absolute difference between long and short open interest For example, if there is more long open interest than short open interest, opening a short position reduces the imbalance and qualifies for the 0.04% fee. Opening another long position increases the imbalance and incurs the 0.06% fee. Most markets use these rates. TradFi markets use different rates (see [TradFi markets](./tradfi-markets.md#fees) for the per-market breakdown). GOLD/USD, SILVER/USD, WTIOIL/USD, and BRENTOIL/USD use reduced on-hours rates of 0.01% / 0.02%, with standard rates (0.04% / 0.06%) during off-hours. NATGAS/USD uses 0.02% / 0.04% on-hours and 0.04% / 0.08% off-hours. SPCX/USD uses 0.05% / 0.06% on-hours and 0.06% / 0.08% off-hours. QQQ/USD and SPY/USD use 0.01% / 0.02% on-hours and 0.04% / 0.06% off-hours. ## Swap fees Swap fees on GMX vary by market type — standard or stablecoin — and whether your swap improves or worsens the pool's balance. All fees are calculated on the swap input amount. ### Standard swap fees For a standard swap, the fee is either 0.05% or 0.07% of the swap amount: - **0.05%** — if the swap decreases the USD imbalance between the long and short token pools (balance improved) - **0.07%** — if the swap increases that imbalance (balance not improved) The pool balance check compares the absolute USD difference between the long and short token pool values before and after your swap. If the post-swap difference is smaller, the lower fee applies. ### Stablecoin swap fees Stablecoin swap markets use significantly lower fees than standard markets. Rates differ by chain: | Chain | Fee (balance improved) | Fee (balance not improved) | | ------------------------------------------------------------- | ---------------------- | -------------------------- | | Arbitrum (USDC/USDC.e, USDC/USDT) | 0.005% | 0.02% | | Arbitrum (USDC/USDG) | 0.005% | 0.01% | | Avalanche (USDC/USDT.e, USDC/USDC.e, USDT/USDT.e) | 0.01% | 0.01% | The Arbitrum USDC/DAI and Avalanche USDC/DAI.e swap-only markets are delisted and aren't part of the active stablecoin-swap set. ### Atomic swap fees Atomic swaps use a separate fee factor that's configured per market: up to 3.75% on standard markets and 0.5% on stablecoin swap-only markets, including USDC/USDG. An atomic swap executes in a single transaction. :::tip Single-token pools (where both the long and short token are the same) have no swap fees on any position operation, because collateral, PnL, and pool backing all use the same token — no token conversion is needed. The BTC/USD [WBTC.e-WBTC.e] and ETH/USD [WETH-WETH] pools also have position impact factors set to zero, meaning no price impact of any kind on these markets. For a full comparison, see [Single-token vs multi-token pools](../providing-liquidity.md#single-token-vs-multi-token-pools). ::: ## Slippage Slippage is the difference between the expected execution price when you submit an order and the actual price when the order executes, caused by price movement during the brief window while the order is processing. The default allowed slippage is 1% and can be adjusted in settings or directly in the trade box. Slippage applies to market orders only — limit and trigger orders use a fixed acceptable price you set at order creation. When you submit a market order, the interface computes an `acceptablePrice` by applying your slippage setting to the mark price. At execution, the contract checks whether the actual execution price satisfies that `acceptablePrice`, and reverts if it doesn't. For example, consider a Market Increase on ETH/USD: - Expected execution price: $4,000 (long position). - Actual price at execution: $4,080 (2% higher) due to volatility. - Since the price moved against you (higher entry for a long), this is unfavorable slippage. - The order won't execute unless your allowed slippage was set to 2% or higher. You can set slippage up to a maximum of 5%. The interface shows a warning when slippage exceeds 2%. Slippage is separate from price impact. Price impact is an additional positive or negative adjustment based on open interest imbalances, applied independently of slippage. See [Price impact and price impact rebates](#price-impact-and-price-impact-rebates) for details. :::note[Slippage on GMX vs. other platforms] On most trading venues — AMMs, DEX aggre
프로젝트로 돌아가기