LogoLogo
Trade Now
  • Trade Now
  • 👋Welcome
    • About Demex
      • Roadmap
      • Terms and Conditions
      • Disclaimers
    • Getting Started
      • Depositing
      • Activate Account
      • One-Click Trading
  • 💰Demex Rewards
    • 🪂Demex Points
      • Spins
      • Wheel of Fortune and Loot Boxes
      • Squads
      • DMX Token
      • FAQs
    • 🏁Demex Endgame: 50,000,000 Demex Points
    • 💵Demex Credits
    • 🕙Past Events
      • 2022
        • Futures Trading Competition
          • Maker vs Taker #1
          • Maker vs Taker #2
        • Perpetuals Trading Competition
          • Top Gainers and Top Traders #1
          • Top Gainers and Top Traders #2
          • Top Gainers #3
      • 2023
        • Demex Trading Leagues
          • Demex Trading League
            • How to Register
          • Demex $100,000 Mega Marathon
            • Demex Trading League Vol 1
              • How to Register
            • Deposit Booster
            • Demex Trading League Vol 2
          • Demex Trading League (Round 3)
            • How to Register
          • Demex Trading League (Round 4)
          • LUNA Earn-A-Thon & Demex Trading League (Round 5)
          • Demex Trading League (Round 6)
          • SCRT Trading League
        • Earn-a-thons
          • Demex x StaFi ATOM Earn-A-Thon
          • Demex x Zilliqa ZIL Earn-A-Thon
            • How to Register
        • Trading Challenges
          • BNB Trading Challenge
            • How to generate your custom hashtag
          • NEO Trading Challenge
            • How to Register
          • OSMO Perp Trading Challenge
          • Perps Trading Challenge
        • Special Events
          • $500 Surprise Flash Promotion
          • Demex Incentivized Devnet (Ended)
            • Perp Pools Deposits
            • Base Vault and $CLP Staking
            • Fluo Dashboard (Deprecated)
              • Stake FLUO
              • Boost Rewards
              • esFLUO Rewards
            • Demex Trading League (Devnet)
              • How to Register
            • The HODL Lottery
              • How to Register
              • How to Count Your Tickets
      • 2024
        • Celestia Trading League
        • FOMO Points Booster
        • DeFi Points Booster
        • Celestia Points Booster
        • 🥛milkTIA x Demex Points Booster Bonanza
        • BTCETH Points Booster
        • 🟠 Archway Trading League
        • ⚛️ Cosmos Trading Competition
          • 🐋Whalecome to Demex
        • 💯DeFi & FOMO Points Booster
        • 💯DeFi & Layer 1 Points Booster
        • 💧dATOM Lend and Trade Spins Promo
        • 🐸Perp Pool Incentives with Leap Wallet
        • 👋Welcome #BackToDemex
        • 🥛milkTIA Lend and Trade Spins Promo
        • 🛡️Loss Protection
        • 🏃‍♂️STRD Lend and Trade Spins Promo
        • 🐶Meme Traders Arena
        • 🛡️Loss Protection Oct-Nov
        • 🌙LUNA Lend and Trade Spins Promo
        • 💯Modular Pool Points Booster
        • 🕰️Mantle Lend & Trade Spins Promo
        • 🏎️Mantle Trading League
        • 🛡️Loss Protection Dec 9 - 20
        • 👑Mantle Trading League S2
      • 2025
        • 🔲Mantle Rewards Station: 30,000,000 Demex Points
        • 🔲Mantle Rush
        • 🔐Loss Protection March 19 - 26, 2025
        • 🌀Mantle Lend & Trade Spins Promo
        • 💙Base Trading League
        • 🧢Base Lend & Trade Spins Promo
        • 🛡️Loss Protection Feb 10 - 20, 2025
        • 📝#DemexContentQuest
        • 📈#PerpsOnDemex
        • 👥Demex Referral Club
        • 🤖Traḋemex Bot
  • 📊Trade
    • Features
    • Perps & Futures
      • Pricing Engine
      • Margin Specifications
      • Liquidation Engine
      • Market Specifications
      • Pre-launch Perpetuals
      • Glossary
      • FAQs
    • Grouped USD Token
      • Constituent Criteria
      • Safety Features
      • Migration Guide
    • Fees
      • Trading Fees
      • Funding Fees
      • Network Fees
      • Deposit & Withdrawal Fees
      • Fee Delegation
      • CEX to Demex VIP Program
      • Fee Distribution
    • Notifications
      • Demex Progressive Web App (PWA)
    • Trading Modes
      • Lite Mode
      • Pro Mode
        • Features
        • Market Leverage
        • Order Types
        • Execution Options
        • Time-In-Force 🆕
        • Trigger (Stop) Orders
          • Take-Profit
          • Stop-Loss
        • Chart Trading 🆕
  • 💰EARN
    • Liquidity Pools
      • Spot Pools
        • Earnings
        • Amplified Pools
        • Uneven Pool Weights
        • Multi-Pool Routing
        • FAQs
      • Perp Pools
        • Earnings
        • Deposting & Redeeming
        • AMM Strategy
    • Nitron (Lend & Borrow)
      • Lending
      • Borrowing
        • Avoiding Liquidations
      • Liquidation
        • Partial Liquidations
      • USC Stablecoin
        • Interest Rate Model
      • High Efficiency Mode (E-Mode)
      • Liquidations
        • Liquidation Guide
      • Strategies
        • Using Nitron for Perp Trading
      • Protocol Safety Features
      • Risks
    • Referrals
      • Sharing Your Referral Link
      • FAQs
      • Terms and Conditions
  • Stake SWTH / DMX
  • 🫂COMMUNITY
    • Public Community Nodes
    • Feedback
    • Glossary
      • Annual Percentage Rate (APR)
      • Arbitrage
      • Decentralized Applications
      • Execution Options
      • Liquidation
      • Liquidity Pool
      • Liquidity Providers
      • Perpetual Pool
      • Open Interest (OI)
      • Order Book
      • Time-In-Force
      • Volume
      • Yield Farming
  • ⚙️Developers
    • APIs Overview
    • WebSocket API
    • RPC API
    • EVM API
    • Insights API
    • Node CLI
    • Running a Node
      • Testnet
      • Mainnet
      • Public API Node
      • Validators
        • Commissions & Penalties
  • 🤖EVM
    • Overview
    • Deployment Tutorial
    • Interacting with Demex L1
      • Built-in Oracle Contracts
      • Precompiled Trading Contracts
    • ICS-20 <> ERC-20 Token Conversion
    • Explorers
Powered by GitBook
On this page
  • Introduction
  • Why are Funding Rates Necessary?
  • Calculation
  • Premium Rate
  • Borrow Rate

Was this helpful?

  1. Trade
  2. Fees

Funding Fees

Introduction

Funding fees on Demex are paid based on the funding rate between traders that go long, and traders who go short on perpetual contracts. The funding interval on Demex is 10 minutes.

Demex's funding rate consists of a premium rate and a borrow rate. The fees a trader pays or receives go into the position's realized profit and loss.

FundingRate=PremiumRate+BorrowRateFunding Rate = Premium Rate + Borrow RateFundingRate=PremiumRate+BorrowRate
  • When the funding rate is positive, long positions pay short positions.

  • When the funding rate is negative, short positions pay long positions.

Why are Funding Rates Necessary?

Futures contracts have an expiry date which settles at the spot price upon expiry. This helps to pull the price of the futures contract to the spot price, especially as it approaches settlement date.

However, perpetual contracts do not have an expiry date. Thus funding rate was created to peg the perp price to the index price.

Without funding rates, the price of the perp can raise or fall to any level without repercussions and becomes unreliable as a trading instrument as it is not able to mimic the index price.

Here's an example of how our funding rate works. When a perp is priced higher than the index, traders who go long pay traders who go short (aka longs pay shorts). The higher the deviation, the higher the funding rate. This component of fthe unding rate is also referred to as the premium rate.

This achieves two things:

  1. It encourages more shorts to come in to earn the funding fee, adding sell pressure.

  2. It encourages existing longs to close their position to stop paying the high funding fee, adding sell pressure.

Demex's funding rate is also affected by an additional borrow rate if the perp market has a perpetual pool linked to it, otherwise, the borrow rate is zero.

Calculation

Premium Rate

The premium rate is calculated from the difference between the perpetual contract's mark price and the index price it is tracking.

This is given by:

Premium Rate = TWA((MarkPrice - IndexPrice) / IndexPrice) / 86400s x FundingIntervalSecs)

The TWA is the time-weighted average across the current funding interval and is sampled every block.

The premium rate is a mechanism to keep the price of perpetual contracts as close to the index price as possible.

When the price of the perpetual contract is above the index price, the funding rate is positive, and long positions pay short positions. When the price of the perpetual contract is below the index price, the funding rate is negative, and short positions pay long positions.

The reasoning for this is that when the price of the perpetual contract is higher than the index, then in order to strengthen demand for shorts and subsequently encourage the price to fall towards the index, shorts are paid funding by longs (positive funding). This has the effect of decreasing demand for longs and increasing demand for shorts until the price reaches the price of the index.

Conversely, when the price of the perpetual contract is lower than the index, to strengthen demand for longs and subsequently encourage the price to increase towards the index, longs are paid funding by shorts (negative funding). This has the effect of decreasing demand for shorts and increasing demand for longs until the price approaches the index again.

Borrow Rate

The borrow rate for a market is given by:

BorrowRate=BBR×MVM×min(MU,1)×MUS×PDBorrowRate=BBR×MVM×min(MU,1)×MUS×PD BorrowRate=BBR×MVM×min(MU,1)×MUS×PD

Where:

  • BBR = Base Borrow Rate

  • MVM = Market Volatility Multiplier

  • MU = Market Utilization

  • MUS = Market Utilization Scale

  • PD = Pool Direction

The following section goes into the details for each variable.

Base Borrow Rate

This is the base rate that is being charged per hour by the liquidity pool that is backing the market.

Market Volatility Multiplier

This is a static multiplier specific to the market to help manage market risk. For example, if a perpetual pool is backing multiple markets, more volatile markets can still share the pool by having a higher Market Volatility Multiplier.

This allows LPs to be compensated for the additional market risk they take for that specific market without having to fragment liquidity across multiple pools.

Market Utilization

This is the pool liquidity currently used by the market over the maximum liquidity that can be used.

This is calculated as the open position of the pool for the market divided by the pool's liquidity plus urealized PnL.

Note that the open position of the pool is also the net sum of trades done by users that have matched against the pool.

Market Utilization Scale

This is a multiplier that scale from 1 to 10, which increases linearly over 6 hours, for as long as the 6-hour time-weighted Market Utilization remains above the target utilization rate, and vice versa.

This means that a high Market Utilization sustained over a period of time effects a Borrow Rate that scales linearly higher.

Pool Direction

Either:

  • -1 if the pool is long, or

  • 1 if the pool is short.

This means that the Borrow Rate will always be in favor of the pool's current position, incentivizing traders to take the same position as the pool. In other words, this encourages traders to take over the pool's position and decreases the market risk for liquidity providers.

Borrow Rate Calculation Example

Given these variables for a particular perpetual market

  • Base Borrow Fee is 2bps

  • Market Utilization is 50%

  • Market Volatility Multiplier is 1

  • Market Utilization Scale is 1

  • Pool is short

Then the Borrow Rate for that perp market is 2/100 x 50% x 1 x 1 = 0.01% per hour.

If the Market Utilization then becomes 100% and remains that way for 6 hours, the Market Utilization Scale becomes 10, and the Borrow Rate per hour becomes 0.2% (2/100 * 100% * 1 * 10).

This mechanism is designed to incentivize traders / funding arbitrageurs to trade against the current market trend, thereby helping to stabilize the market and skew, while disincentivizing traders from piling into the popular trade and profiting from large market swings in the right direction.

PreviousTrading FeesNextNetwork Fees

Last updated 15 days ago

Was this helpful?

Certain Demex markets that are backed by have an additional borrow rate component. This borrow rate is essentially a fee charged to traders for temporarily removing liquidity in these pools when they trade against the pool and hold an open position.

📊
perpetual liquidity pools