Introduction
In line with industry standards, fees are calculated on the value of the total position size (leverage x collateral).Fees Breakdown
The “Market/Limit” fee below goes to the protocol fee distribution if the order is a market order, and to oracle bots if the order is a limit order. Additionally, the referrer rewards are always taken from the “Governance Fund” fees. Finally, while all trades are open, they may pay a borrowing fee, which goes into the overcollateral layer of the corresponding gToken vault. Gains Network earns revenue from trading fees on Gains. Fees are distributed as follows: • Governance (DAO): 76% for protocol operations and incentives• Vault (Liquidity Providers): 15% for underwriting trades
• Referrals: 5%
• Trigger Keepers: 4% The share previously allocated to the GNS buyback & burn is, for now, directed to the Governance (DAO).
Cryptocurrencies
For BTC and ETH, the spread is 0%. For other cryptocurrencies the spread is dynamic, depending on the price impact formula. Core- Opening a trade: 0.05%
- Closing a trade: 0.05%
- Opening a trade: 0.06%
- Closing a trade: 0.06%
Degen
Degen pairs are high-leverage variants offering a fixed 500x leverage. The available degen pairs are:- BTCDEGEN/USD
- ETHDEGEN/USD
- SOLDEGEN/USD
- BNBDEGEN/USD
- HYPEDEGEN/USD
- Opening a trade: 0.02%
- Closing a trade: 0.02%
Forex (Major)
Spreads on all major forex pairs are fixed at 0.01%.- Opening a trade: 0.012%
- Closing a trade: 0.012%
Forex (Minor)
Spreads on all minor pairs are fixed at 0.01%.- Opening a trade: 0.016%
- Closing a trade: 0.016%
Forex (Exotic)
Spreads on all exotic forex pairs are set per pair depending on their volatility.- Opening a trade: 0.02%
- Closing a trade: 0.02%
Commodities (Tier 1)
This category currently includes XAU/USD (Gold), XAG/USD (Silver), and HG/USD (Copper). Spreads on all tier 1 commodities are fixed at 0.01%.- Opening a trade (0.05%)
- Closing a trade (0.05%)
Commodities (Tier 2)
This category currently includes WTI/USD (Oil) and XPT/USD (Platinum). Spreads on all tier 2 commodities are fixed at 0.04%.- Opening a trade: 0.08%
- Closing a trade: 0.08%
Stocks
- Opening a trade: 0.07%
- Closing a trade: 0.07%
Indices
- Opening a trade: 0.05%
- Closing a trade: 0.05%
Lifecycle of a Trade
Opening Fee
Let’s say we use 250 USDC at 10x leverage to long ETH/USD. The fee is applied to leveraged amount: 2,500 USDC. 2,500 * (0.06/100) = 1.5 USDC fee 248.5 USDC is the total collateral value of your newly opened trade, and therefore its total position size is 2,485 USDC.Fixed Spread
When opening a trade the Chainlink oracle returns a price for the asset. If the pair has a fixed spread, it is then applied to that price. For instance, with a 0.04% fixed spread on an oracle price of 3,003.19, the open price would be 3004.39 before consideration of the dynamic spread (see section below). That is: 3,003.19 + (3,003.19 * 0.04 / 100) = 3004.39 Note that some pairs, including BTC and ETH, have no fixed spread (0%), in which case only the dynamic spread applies. See the fees breakdown for per-class spreads. Spreads vary by pair. Smaller pairs with lower liquidity usually have a higher spread. The spread is displayed next to Price in the trade parameters and can be confirmed in the Pairs Storage contract by searching for the relevant pair index.Dynamic Spread
Dynamic spread, formerly known as price impact, is added on top of the fixed spread if the pair has one. It depends on the pair’s open interest, the size of the trade being opened, and the trade direction. Dynamic Spread (%) = (Open interest {long/short} + New trade position size / 2) / 1% depth {above/below}.Cryptocurrencies
Dynamic spreads use the 1% depth in each direction (long: 1% depth above / short: 1% depth below) from Binance. Forex Fixed spreads. Commodities Fixed spreads.ETH/USD Example
So using our above price example with a position size of 2,480 after fees, if the “1% depth above price” parameter for ETH/USD is 8m and there is 100,000 USDC of open long interest: (100,000 + 2,480 / 2) / 8,000,000 = 0.0126% dynamic spread This percentage is then applied to the opening price including the Fixed Spread. In the case of crypto, as there is no Fixed Spread, this is just 3,003.19: Final opening price = 3003.19 + (3003.19 * 0.0126 / 100) = 3003.57 So in this case if the median spot price was 3003.19, the opening price would be 3003.57.Borrowing Fee
Borrowing fees treat open trades of the dominant side as vault borrowers. The fee is determined by a pair’s (or the group the pair is part of) net OI relative to the overall vault TVL, meaning pairs (or groups) with more lopsided OI will charge more than pairs with balanced OI. The fee is charged per block on a trade’s total position size and is calculated as follows:feePerBlock = baseFeePerBlock * (effectiveOi / maxOi) ^ exponent
where effectiveOi is calculated as follows:
effectiveOi = Math.min(Math.max(Math.abs(long - short), max * minP), max * maxP)
effectiveOi is calculated by finding the delta between the side that is long and the side that is short. This value is then clamped using minP and maxP to create a floor and a ceiling, ensuring that both a minimum fee is always paid, and that the fee is never excessive. exponent is used to maintain an exponential relationship between the borrowing fee and the current market conditions.
Although outdated, please refer to the Medium article for further details.
Liquidation Prices
Trades liquidation prices can get closer over time if you pay borrowing fees. Liquidation Price Distance = Open Price * (Collateral * Liquidation Threshold - Closing Fee - Borrowing Fees) / Collateral / Leverage. Liquidation price =If Long: Open Price - Liquidation Price Distance
Else (Short): Open Price + Liquidation Price Distance. For example, let’s say that you have opened a long on BTC/USD at 20,000 USD using 100x leverage and 50 USDC collateral, the liquidation threshold would be 67%, the closing fee would be 16 USDC (20,000*(0.08/100) and that you have paid 1 USDC in borrowing fees: Liquidation Price = 20,000 - 20,000 * (50 * 0.67 - 16 - 1) / 50 / 100 = 19,888 USD.
Liquidation Thresholds
The liquidation threshold depends on asset class and leverage used. The values can be found in the following table, for Cryptocurrencies, Forex (major), Forex (minor), Forex (exotic), Commodities (gold), Commodities (other)- Cryptocurrencies
- Fx (major)
- Fx (minor)
- Fx (exotic)
- Commodities (gold)
- Commodities (other)
Cryptocurrencies
| Leverage | Liquidation Threshold % |
|---|---|
| 2 | 89.84 |
| 5 | 89.60 |
| 10 | 89.20 |
| 15 | 88.80 |
| 20 | 88.40 |
| 25 | 88.00 |
| 30 | 85.46 |
| 35 | 82.91 |
| 40 | 80.37 |
| 45 | 77.83 |
| 50 | 75.29 |
| 55 | 72.74 |
| 60 | 70.20 |
| 65 | 69.80 |
| 70 | 69.40 |
| 75 | 69.00 |
| 80 | 68.60 |
| 85 | 68.20 |
| 90 | 67.80 |
| 95 | 67.40 |
| 100 | 67.00 |
| 105 | 66.60 |
| 110 | 66.20 |
| 115 | 65.80 |
| 120 | 65.40 |
| 125 | 65.00 |
| 130 | 64.60 |
| 135 | 64.20 |
| 140 | 63.80 |
| 145 | 63.40 |
| 150 | 63.00 |
