bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 45쪽 중 40쪽
gators, and some centralized exchanges — "slippage" refers to the total difference between the quoted price and the execution price, which includes the effect of your trade on market liquidity (what GMX calls price impact).
On GMX, these are two distinct mechanisms:
- **Slippage** protects only against oracle price movement between the time you submit an order and when a keeper executes it.
- **Price impact** is a separate adjustment based on pool imbalance, calculated and applied independently at execution time.
The expected output shown in the interface already accounts for estimated fees and price impact. Your slippage setting adds an additional buffer on top of that estimate to cover oracle price movement during the execution window. This means setting 1% slippage on GMX is not equivalent to setting 1% slippage on a DEX aggregator — on a DEX aggregator, that 1% must cover both price impact and price movement, while on GMX it only needs to cover price movement.
:::
## Price impact and price impact rebates
On GMX, opening a position incurs no price impact at entry. The entry price is determined by the oracle price (`maxPrice` for longs, `minPrice` for shorts). See [Pricing on GMX](./order-types.md#pricing-on-gmx) for details. Price impact is calculated based on the net open interest imbalance caused by both opens and closes, but it is only applied (charged or credited) when you close or decrease a position — hence the name "net price impact."
Net price impact can be positive or negative, up to a market-specific cap. Unlike orderbook models, GMX caps price impact, so you don't have to worry about orderbook depth. Also unlike orderbooks, a positive price impact means you can be paid rather than penalized.
### Price impact formula
Price impact is calculated from the change in pool imbalance caused by a trade:
```
priceImpact = (initialImbalance ^ exponent × factor) − (finalImbalance ^ exponent × factor)
```
Where:
- **initialImbalance** — the absolute difference between long and short values before the trade
- **finalImbalance** — the absolute difference after the trade
- **factor** and **exponent** — per-market configuration parameters (separate values for positive and negative impact paths)
For **positions**, the imbalance is the difference between long and short open interest. For **swaps**, the imbalance is the difference between the USD values of the long and short token pools.
When a trade reduces the imbalance (final < initial), the result is positive — the trader receives a better price. When it increases the imbalance, the result is negative — the trader receives a worse price. If a trade crosses the balance point (the larger side becomes the smaller side), the calculation splits: the portion toward balance uses the positive factor and the portion past balance uses the negative factor.
For position operations, price impact adjusts the entry or exit price rather than deducting from collateral, which preserves the intended leverage ratio. The protocol also maintains a virtual inventory that tracks impact across correlated markets to prevent users from reducing their net impact by opening opposing positions in different markets.
For the SDK implementation of this formula, see [`getPriceImpactUsd`](../sdk/v1/exports/utils/fees/priceImpact.md#getpriceimpactusd) and related functions in the price impact module.
The prices shown in the trade history — for both opens and closes — are the mark prices (oracle prices) at which the orders executed. For closing, the net price impact is a separate value not included in the displayed mark price. Instead, price impact adjusts your collateral received independently. For example, if the close price is $1,900 and the net price impact is +$1, the mark price remains $1,900 but you receive an additional $1 in collateral, making your effective value $1,901. Conversely, a -$1 net price impact means $1 is deducted from your collateral received.
You can view net price impact in the net value tooltip on the positions list or close modal. The claimable rebate amount is also included in the net value calculation, so your position's net value reflects any rebate you're owed. For a detailed breakdown, enable **"Break down net price impact"** in the display settings — this shows the price impact stored when you opened the position, the price impact from closing, and how they combine into the net amount.
### Price impact caps by market
Negative and positive price impact have separate caps. The max negative price impact varies per market based on liquidity depth (see table below), while the max positive price impact is 40 bps (0.4%) for most markets. This creates an asymmetry — for example, a market with a 500 bps negative cap still has only a 40 bps positive cap.
Negative price impact caps by market:
- Major markets (BCH, BNB, BTC, ETH, PEPE, SOL): 50 bps (0.5%) cap
- Lower-liquidity markets: 75–1000 bps (0.75%–10%) cap, depending on the market's liquidity depth
For example, if the cap is 50 bps, you never pay more than 50 bps in price impact, regardless of order size. Markets with less liquidity have higher caps to better reflect execution conditions.
| Cap | Markets |
| -------- | -------------------------------------------------------------------------------------------------------------- |
| 50 bps | BCH, BNB, BTC, ETH, PEPE, SOL, XAUT |
| 75 bps | BONK, LTC |
| 100 bps | ASTER, AVAX, CRO, CRV, DOGE, ENA, FLOKI, HYPE, LINK, NEAR, SHIB, TRX, XPL, ZEC |
| 150 bps | 0G, AAVE, ADA, APE, APT, ARB, ATOM, FARTCOIN, INJ, OP, PENGU, PUMP, QQQ, SPY, TRUMP, UNI, WLD, XLM |
| 200 bps | AR, DASH, DYDX, EIGEN, FIL, ICP, ONDO, SUI, VIRTUAL, XMR, XRP |
| 250 bps | DOT, HBAR, LDO, MOODENG, ORDI, S, SEI, TAO, TIA |
| 300 bps | AERO, AIXBT, ANIME, AVNT, BERA, CAKE, FET, JUP, KAS, LINEA, PENDLE, POL, SPCX, SYRUP, WIF, ZORA |
| 400 bps | WLFI |
| 500 bps | ALGO, CHZ, CVX, DOLO, GMX, JTO, LIT, MNT, MON, OKB, RENDER, SKY, SPX6900, STX, ZRO |
| 1000 bps | CC, MET, MORPHO, VVV |
The GMX risk team configures price impact caps per market and can update them. View the current values for each market on the [Monitor](https://app.gmx.io/#/monitor) page under the Config column.
For large orders (typically $1,000,000 or more with negative price impact exceeding 0.2%), consider using TWAP to reduce price impact by executing in smaller parts over time. For swaps, positive price impact increases the tokens you receive, while negative price impact decreases them.
:::note
Capped negative price impact is factored into liquidation price calculations. Positive price impact is excluded. For details, see [Price impact in liquidations](./liquidations.md#price-impact-in-liquidations).
:::
Long and short open interest in markets is typically balanced, leading to minimal net price impact. During high volatility, imbalances can cause higher net price impacts. Price impact rebates help mitigate this. If a decrease order has a negative net price impact exceeding the market's cap, the excess becomes claimable as a rebate after a five-day delay.
:::tip
You can claim rebates in the claims section on the trade page. The delay protects against manipulation, and rebates are reviewed before being granted.
:::
The GMX risk team adjusts price impact caps per market to align with current liquidity conditions.
## Funding fees
Funding fees may be a cost or a credit while a position is open. The funding fee rate is visible on the interface when you open or review a trade. The rate changes over time based on the balance of longs and shorts in the market.
If you receive positive funding fees, you can claim them using the "Claim" button in the "Claimable Funding" box of the [Trade](https://app.gmx.io/#/v2) page. The claim modal lets you select eligible market/token entries and includes at most 20 entries in one transaction. If more claimable entries remain, claim the first batch and then submit another claim transaction for the rest.
### Adaptive funding
Funding rates gradually adjust over time based on the ratio of long to short open interest. A sudden shift in the OI balance does not immediately reverse the funding direction — the previously larger side may continue to receive funding until the rate adjusts.
Which side pays and at what rate is governed by a signed state variable, `savedFundingFactorPerSecond`, that the contract updates on every market transaction. A positive value means longs pay shorts; a negative value means shorts pay longs.
The imbalance ratio used for threshold comparisons and rate adjustments is:
```
longShortImbalance = [abs(longOpenInterest - shortOpenInterest) / totalOpenInterest] ^ fundingExponentFactor
```
Whether `longOpenInterest` and `shortOpenInterest` use USD-denominated values or token-denominated values (converted to USD via the index token's mid price) depends on the on-chain `useOpenInterestInTokensForBalance` setting. This is a protocol-wide setting stored once per chain in the `DataStore`, not a per-market parameter, so the same comparison method applies to every market. The setting also applies to [borrow fee](#borrow-fees) balance calculations.
The rate adjusts according to three zones defined by this imbalance relative to two thresholds, `thresholdForStableFunding` and `thresholdForDecreaseFunding`:
- **Above `thresholdForStableFunding`:** The imbalance is large. The rate increases by `longShortImbalance × fundingIncreaseFactorPerSecond` per second. If the imbalance is non-zero and this result is below `minFundingIncreaseRatePerSecond`, the minimum increase rate applies instead. Adjustment continues until the imbalance falls or the rate reaches its maximum cap.
- **Between the two thresholds:** The rate remains constant.
- **Below `thresholdForDecreaseFunding`:** The imbalance is small. The rate decreases by `fundingDecreaseFactorPerSecond` per second toward zero.
If the imbalance reverses direction (for example, longs were dominant and shorts become dominant), the rate immediately starts increasing in the opposite direction, regardless of which threshold zone it was in.
For example, suppose longs exceed shorts and the rate is increasing with longs paying shorts. If shorts are opened or longs are closed so that shorts now exceed longs, the rate begins increasing in the opposite direction — toward shorts paying longs — until a threshold is reached or the maximum cap is hit.
If either the long or short side has zero open interest, there is no counterparty to receive funding. The protocol doesn't advance funding accrual in that state and preserves the signed `savedFundingFactorPerSecond` until both sides have open interest again.
### Max funding settings
Adaptive funding determines the live rate and runs on-chain on every GMX deployment. The floor and ceiling are configured per market and paying side through `minFundingFactorPerSecond(market, isLong)` and `maxFundingFactorPerSecond(market, isLong)`. The side-specific minimum bounds the live rate but not the signed saved state, allowing that state to continue moving through zero when the imbalance reverses.
On Arbitrum, a keeper updates the max-side funding settings for each market — the side-specific `maxFundingFactorPerSecond` ceilings plus the funding increase/decrease rates — by reading recent funding rates from configured external reference venues, applying a floor, cap, and two buffers to the ceiling, and writing the result on-chain. The default Arbitrum reference set is Hyperliquid, Coinbase, Binance, OKX, Bybit, and Trade.xyz. Commodity markets currently use Binance-only overrides. When open-interest weighting is enabled, the keeper weights reference funding medians by external open interest before applying the configured percentile, floor, cap, buffers, and max-change limits. These updates only move the max-side settings; the live rate a trader pays or receives is still driven entirely by GMX long/short open interest imbalance. On chains other than Arbitrum, funding settings are set through contract configuration only and do not track external reference venues.
Keeper bounds effective on Arbitrum from April 23, 2026:
| Bound | Value | Dominant when |
| --- | --- | --- |
| `maxFundingRateFloor` | 15% APR | Reference funding is near zero |
| `maxFundingRateCap` | 300% APR | Reference funding is extreme |
| `maxFundingRateBufferAbs` | 10% APR | Reference funding is in normal ranges |
| `maxFundingRateBufferPercent` | 25% | Reference funding is elevated |
The keeper combines these into the final ceiling in two steps:
1. Take `reference + max(maxFundingRateBufferAbs, reference × maxFundingRateBufferPercent)` as a target.
2. Clamp the target to at least `maxFundingRateFloor` and at most `maxFundingRateCap`.
So the floor matters at the low end, the absolute buffer matters in normal ranges, and the relative buffer matters at the high end. Each preserves enough headroom for arbitrageurs to realign GMX with external markets.
The on-chain parameters used by adaptive funding are stored in the protocol `DataStore` per market.
On Arbitrum, keeper logic currently updates the max-side funding settings:
- `MAX_FUNDING_FACTOR_PER_SECOND` for each paying side
- `FUNDING_INCREASE_FACTOR_PER_SECOND`
- `FUNDING_DECREASE_FACTOR_PER_SECOND`
Other adaptive funding parameters remain contract-configured:
- `MIN_FUNDING_FACTOR_PER_SECOND` for each paying side
- `MIN_FUNDING_INCREASE_RATE_PER_SECOND`
- `THRESHOLD_FOR_STABLE_FUNDING`
- `THRESHOLD_FOR_DECREASE_FUNDING`
On chains other than Arbitrum, funding settings are currently determined by contract-side configuration rather than reference-venue keeper updates.
DataStore values are per-second factors; to compare with APR, multiply by the number of seconds in a year (31,536,000). Current values for a market can be read from `DataStore` using these keys.
### Accrual and settlement
Funding fees accrue continuously using per-second arithmetic. Each market stores `savedFundingFactorPerSecond` (the signed adaptive rate) and a `fundingUpdatedAt` timestamp on-chain. The unsigned `fundingFactorPerSecond` for the paying side is derived on-demand inside `getNextFundingAmountPerSize` and is never stored persistently. The total funding accrued for the paying side over a period is:
```
fundingUsd = sizeOfPayingSide × durationInSeconds × fundingFactorPerSecond
```
Settlement is event-driven, not scheduled. The on-chain funding state updates whenever a transaction touches the market — executing an order, a deposit, or a withdrawal. Between transactions, funding accrues implicitly via the time elapsed since the last update. When a position is modified or closed, the contract computes the exact funding owed using the elapsed time since that last update.
Per-position settlement uses a checkpoint pattern. Each position stores a `fundingFeeAmountPerSize` value recorded at the time the position was last updated. When the position is settled, the contract computes:
```
positionFundingFeeAmount = positionSizeInUsd
× (latestFundingAmountPerSize − position.fundingFeeAmountPerSize)
/ PRECISION
```
The result is rounded up for the paying side and rounded down for the receiving side.
:::note
The `fundingFactorPerSecond` exposed by the interface and API represents the rate for the paying side. The receiving side's effective rate is scaled proportionally by `payingOI / receivingOI`, so total funding inflow equals total outflow.
:::
## Borrow fees
A borrow fee applies to open positions to prevent traders from reserving all pool liquidity by opening equal long and short positions at minimal cost. If the side with larger open interest fully reserves the pool, the borrow fee also incentivizes liquidity providers to add more capital to the pool.
Only the side with the larger open interest pays the borrow fee. If longs exceed shorts, longs pay; if shorts exceed longs, shorts pay. Which side is larger depends on the protocol-wide `useOpenInterestInTokensForBalance` setting — when enabled, the comparison uses token-denominated open interest converted to USD via the index token's mid price rather than directly stored USD values. See [Adaptive funding](#adaptive-funding) for details.
The borrow fee accrues continuously per second and is settled when you modify or close a position. The fee is calculated as:
```
borrowingFeeUsd = positionSizeUsd × (cumulativeBorrowingFactor − positionBorrowingFactor)
```
where `cumulativeBorrowingFactor` increases over time at `borrowingFactorPerSecond`, and `positionBorrowingFactor` is the snapshot taken when your position was last updated.
The current borrow fee rate is shown on the trade interface as a percentage per hour, applied to your position size. The rate changes over time based on pool utilization.
### Rate models
Markets can use a kink model, a no-kink linear model, or a power model. The configuration is set per market and side.
With a kink model (two-segment curve), the rate increases linearly up to an optimal utilization threshold, then rises more steeply above it:
```
borrowingFactorPerSecond = baseBorrowingFactor × usageFactor
if usageFactor > optimalUsageFactor:
diff = usageFactor − optimalUsageFactor
additional = (aboveOptimalUsageBorrowingFactor − baseBorrowingFactor) × diff / (1 − optimalUsageFactor)
borrowingFactorPerSecond += additional
```
A typical configuration is:
- Optimal utilization: 75%
- Rate at or below 75% utilization: 45–55% per year
- Rate at 100% utilization: 100–130% per year
Many markets use a no-kink linear model. These configurations set optimal utilization to 100% and set the base and above-optimal factors to the same annualized tier: 45%, 50%, 55%, or 65%. The live rate rises linearly from zero with utilization and reaches the configured tier at 100% utilization, without a steeper second segment.
Some markets use a power (curve) model instead:
```
borrowingFactorPerSecond = borrowingFactor × reservedUsd ^ borrowingExponentFactor / poolUsd
```
The default base configuration uses a linear exponent of 1, which targets approximately 15.77% per year at 100% utilization.
Of the borrow fee collected, 63% goes to the pool (accruing to liquidity providers) and 37% goes to the protocol fee receiver.
## Network fee
Every trade on GMX involves two transactions: your request and the keeper's execution. The network fee covers the gas cost of the second transaction.
1. You send a transaction to request an action — open, close, deposit collateral, or withdraw collateral.
2. A keeper observes the request on-chain and executes it in a separate transaction.
The gas cost of the keeper's execution transaction is what the interface calls the network fee. Because gas prices can spike between your request and the keeper's execution, the interface charges a max network fee that overestimates the likely cost. When the keeper executes your order, only the gas actually consumed is paid to the keeper — the remainder is refunded to your account automatically.
The interface displays the network fee row after subtracting an estimated refund, for both Express and Classic transactions. The row shows the fee in the token that pays it, followed by an icon for the balance it's paid from: the GMX logo for your **GMX Account**, or the network logo for a wallet, such as the Base logo for your **Base wallet** in bridge transactions. Hover the fee to see the balance named on the first line of the tooltip, **Paid from**. Express fees are paid in your [gas payment token](./overview.md#gas-payment-token) from the balance the action uses, while wallet-signed transactions pay gas in the network's native token from your wallet. The same tooltip shows the full max network fee amount, along with an estimated refund breakdown.
:::note
The estimated refund shown in the tooltip is an approximation based on recent data, not a guaranteed amount. The actual refund depends on gas prices at the time of execution.
:::
### Max network fee buffer
The max netw프로젝트로 돌아가기