Holdstation Docs
  • πŸ‘‹Welcome
  • Overview
    • πŸ’‘Introduction
      • πŸ†Achievements
      • πŸ‘“Future Direction
      • πŸ’₯Product Suite
      • 🀝Team
      • πŸ—ΊοΈRoadmap
      • πŸ”Audit
    • πŸ«‚Product Fit Community
      • Why Product Fit Community?
      • The Unique Cultures of Blockchain Communities
      • Holdstation’s Community Focus
      • Holdstation Across Ecosystems
    • πŸ‘₯Referral Program
      • πŸ’΅USDC Reward
    • πŸ”—Link
  • Holdstation on World Chain
    • πŸ‘οΈWhy World Chain?
    • πŸ’ΉAION
    • πŸ₯šEggs Vault: Gamified Rewards
  • 🐻Berachain's HONEY Hub
    • ❓Why Berachain
    • 🟑berAIs.land
    • πŸ’±Holdstation DEX Aggregator
      • How to Integrate?
      • Liquidity Sources
      • Fee Structures
    • πŸ’³DeFAI Smart Wallet
      • ⛓️Chain Support
      • πŸ“¦Holdstation Chest
    • πŸ’ΉBeFutures Perp
      • πŸ—οΈArchitecture
        • πŸ’‘Dynamic Price Feed (DPF)
        • πŸ’ΉFlexible Market Making (FMM)
        • πŸ”ŒLeverage
        • 🧲Margin Requirement
        • 🀫Liquidation
        • πŸ’²BeFuture Fees
        • 🏧BeFuture Vault
    • πŸš€Berastarter
      • ❓How does the Fair Subscription model work?
      • 🎯Affiliate Reward
    • 🏨Holdstation Foundation
      • πŸ‘·DAO Structure
      • πŸ‘‰How to be qualified?
    • πŸ‘¨β€πŸ’»AI Communication
  • Token
    • πŸ“ˆToken Overview
      • πŸš€Tokenomics
      • πŸ“ͺToken Utility
      • πŸ”Token Migration
      • πŸ’ͺSustainable Expansion
    • πŸ“”Contract Address
    • πŸ”‘Multisig Wallet
    • πŸ—“οΈHoldstation Public Sales (Ended)
  • User Guide
    • πŸ“ͺSpot Trading
    • πŸ“ŽMargin Trading
    • πŸŒ‰Bridging
    • ⚑Vault
    • 🟣HOLD Staking
  • Integration
    • πŸ“šHoldstation/Worldchain-SDK
      • πŸ‘οΈTokens and Balances
      • ⏫Send
      • πŸ’±Swap
      • πŸŒ‰Widget
      • πŸ“–History
  • Disclaimer
    • πŸ“•Disclaimer
Powered by GitBook
On this page
  1. Berachain's HONEY Hub
  2. BeFutures Perp
  3. Architecture

Flexible Market Making (FMM)

PreviousDynamic Price Feed (DPF)NextLeverage

Last updated 5 months ago

Holdstation DeFutures Flexible Market Making (FMM) model, inspired by Dodo Proactive Market Making Model, uses funding fees in blocks and applies them universally to all assets, including perpetual futures for commodities, crypto, forex,...

The funding fee structure is simplified with a single smart contract implementing both pricing and funding fee logic, creating a more streamlined and efficient trading experience.

Holdstation FMM model has only one general-purpose trading pool (i.e. one single smart contract) implementing the pricing and funding fee logic.

Holdstation DeFutures FMM algorithm works as follows:

P is used below to represent the current mark price of the asset being traded. The mark price is the reference price for determining profit and loss, and is determined by an oracle (a trusted data source that feeds price information into the blockchain). When the net position is 0 (i.e. the number of long positions equals the number of short positions), the mark price equals the index price fed by the oracle. However, when there is a trade, the mark price can change based on the size and direction of the trade.

x is the total trade size of total position

  • FMM algorithm maintains equilibrium when the net position is 0 (non long-short users paid funding fee)

  • The mark price equals the index price fed by the dynamic price feed.

  • Trades push the mark price toward the specific trading direction.

  • The price change due to the trade is proportional to the trade size x.

  • The mark price is pushed proportionally to formula include P (call spread), with a determined by the available open interest

P+βˆ†P,whereβˆ†P=aβ€’x P + βˆ†P, where βˆ†P = a β€’ xP+βˆ†P,whereβˆ†P=aβ€’x
  • The trading volume pushes the mark price linearly.

  • The precise collateral size is calculated by the deduce the trading cost (leverage, collateral) - more details available in

  • The price spread and the mark price are determined by the total net position.

The funding fee will calculate by individual blocks time, and determine the funding fees when the users close the orders.

🐻
πŸ’Ή
πŸ—οΈ
πŸ’Ή
Protocol Fee