The Road Ahead for MarginX: Beyond Just a Decentralized Perpetuals Exchange

Keywords: Scalable. Expandable. Multiple trading options.

Overview of MarginX’s infrastructure

Scalable. Expandable. Multiple trading options.

It has always been a topic in question about where MarginX is heading, especially within a crowded perpetuals DEX market. What are the advantages of MarginX? Or, rather, what is the main difference between MarginX and these other DEXes?

Technical Advantage: Chain VS DApp

From a structural point of view, MarginX is a standalone blockchain (or DApp chain), while many other DEXes are DApps. A simple analogy: MarginX is like Osmosis (on Cosmos), while the other DEX DApps are like AMMs.

MarginX is a layer 2 blockchain built on the Function X network. This way, it acts as a DApp chain instead of a DApp. The mechanics of MarginX’s operations, logic and actuation (deposit/withdrawal, open/close position, matching, liquidation etc.) are very different from how a DApp works.

For example, when you trade on dYdX, the transaction speed and transaction count are dependent on the traffic of the native chain. Imagine, if the TPS of Ethereum is only 12, the maximum number of transactions Ethereum can process in an hour is only 720. This bandwidth needs to be shared among other protocols, and the matching on a DApp level incurs very high gas fees. In addition, your trade has the potential of being front run (no thanks to those MEV bots).

There is also doubt on the transparency of the DEX because users are basically trading against smart contracts and a bunch of APIs — no one knows who the counterparty is, except for the protocol owners, and the price oracle is controlled by these same owners.

Simply put, the ceiling of a DApp is dependent on the bandwidth of the native chain.

Let’s assume the following:

  1. TPS of native chain: 50
  2. Usage of the bandwidth of the DApp: 50%
  3. Trading volume per request: $100

In this case, the total number of requests (including market order, limit order, open/close position, liquidation etc.) that can be processed annually is around 788 million. The annual total trading volume would be around $78.8 billion, which is less than 0.1% of the total trading volume of Binance.

On the other hand, the MarginX chain only deals with MarginX related transactions — no gas fee war, no shared bandwidth and no front runs. Being a dedicated DEX chain, requests are being processed on the blockchain ledger level to ensure transparency. Other than that, participants can set up validator nodes to participate in the block validation process as part of a decentralized governance model, and to speed up the broadcast process (no hidden advantages).

Differences between a DApp and a chain (high level illustration — reference only)

In a nutshell, the strength of a DEX chain compared with a DApp is the fully unleashed potential of a perpetuals trading platform — the processing capability could be 100x larger with full transparency, while maintaining an undisturbed and smooth traffic flow with significantly low gas fees. You wouldn’t want to open or close a position in a volatile market when the network is congested with massive traffic!

USP of MarginX

Other than the technical advantages, MarginX aims to provide multiple trading options, with a highly liquid trading environment to suit different preferences.

- More Trading Options and Liquidity

MarginX makes trading more versatile. Users can choose to either manage trading themselves or participate in MarginX Liquidity Pools — Maker Liquidity Pool (Banker), AI Bots Trading Pool (Player) or ETFs — to let the professionals manage their trading for them.

It will be as easy as social trading or trading mutual funds on a CEX, except that the mechanics on MarginX will be much more transparent.

- Enhancement of Capital Efficiency

MarginX aims to enhance the capital efficiency of each user’s inflow and outflow.

Inflow: users can collateral their idle funds to trade
Outflow: users can tokenize their positions on MarginX

On MarginX, users will be allowed to collateral their idle funds (existing tokens or LP tokens) into an “fxUSD” token against a certain ratio, and using this token will be able to participate in several trading options provided by MarginX.

Besides this, MarginX will also allow users to tokenize their long/short positions on MarginX for extra liquidity. For example, if Alice opens a 3x BTC long position, she can either choose to keep that position or tokenize her 3x long position and trade on other platforms, or use the leveraged token as collateral to borrow funds, for hedging, or for other purposes.


Phase 1 — 2023 Q1 (Completed)

  • MarginX basic trading function (MarginX chain)
  • Basic trading pair options
  • Cross-chain integration
  • f(x)wallet integration
  • StarScan explorer integration
  • Maker Liquidity Pool (Ethereum/FXCore)
  • AI Bots Trading Pool (Ethereum)

Phase 2 — 2023 Q2 (Ongoing)

  • Infrastructure enhancement — stop-loss/take-profit
  • Leverage increase to 25x–50x
  • Funding rate change to hourly basis
  • Trading pair options expand to 30–50 pairs, including stocks, forex and commodities
  • Trading function optimization
  • Cross-chain bridge enhancement
  • Expansion of networks (BSC, Avalanche, Polygon etc.)
  • Fund management
  • Collateral into fxUSD
  • Tokenization of MarginX‘s position to leveraged token

The road ahead is exciting. Beyond a DEX, beyond a blockchain.

MarginX aims to become a comprehensive DeFi solution to further enhance idle liquidity while maintaining transparency.

Lastly, always Do Your Own Research (DYOR). Your principal is not guaranteed.

Core Contributor of MarginX

Full article here:


Amazing Info!

Good Roadmap.

1 Like

Does MarginX rely on its own chain for security, including the nodes participating in its own consensus protocol, or does it rely on the L1 chain for security?

1 Like

short answer is, MarginX chain is running its consensus protocol on MarginX chain

1 Like

this is a big plus which is often times overlooked.


This means MarginX is more of a sidechain than a Layer 2, right?

  • Since it has its own consensus protocol and is running in parallel to Function X

Since Layer 2s inherits the security of the main chain but sacrifices decentralization. Layer 2s has centralized sequencers, which are often handled by a centralized entity. Like Arbitrium is a L2 and its sequencer is handled by Offchain Labs.

  • Subnets
  • Layer 2
  • Side chains

Since each of these 3 has its own specific categorizations.

Also, Osmosis is a Layer 1.

Was just wondering exactly which one is MarginX - a subnet, layer 2 or a sidechain

1 Like

technically, you are right - MarginX is one of the subnets of Function X.


Technically, it’s a zone, right?

  • Since it is built on the Cosmos-SDK and IBC.

I guess subnets were used because they have greater marketing appeal since they were hyped up.

I just wanted to clarify because I frequently observe all of these terms being interchanged despite having clear differences between them. Good to have clear guidelines in order to avoid confusion, haha.

Thank you!

1 Like

I see more MarginX as a sidechain to FunctionX, but with full interoperability with FxCore.
The thing currently is that that many things are not open source or at least not technically described (oracles, IBC nodes and endpoints, MarginX node).
But i’m assuming this will come later on.
Anyway, great work, and great roadmap !!!
Contrats @Danny !


The correct term for MarginX would be “Zones” in Cosmos terminology, which is essentially a two-way pegged sidechain via a lock-and-release mechanism.

I guess it’s good to have a proper fixed term in the docs instead of using all the terms because, if you think about it from a builder’s perspective, different builders choose to build on different narratives -
L1 / L2 / Sidechains / Subnets etc.).

  • To determine who your target market is
  • To inform the builders of the category to which MarginX belongs

It’s nice to have consistency in categorizations.


right, I think MarginX can be a modified version of “zones”, or rather one of the subnets that built upon Function X

Excited for Phase 2, especially the long-awaited fxUSD and the expansion of MarginX to other networks, which will also boost FXCORE’s exposure!

p.s. im scared of stablecoins though, scary but adventurous! :face_with_peeking_eye:


yeah, probably the most ‘adventurous’ and ‘exciting’ defi product in the market


I am understant that PAIRs will be like farming pools with syntethics assets Born from fx or usdt token lock.

If i am understant well that should to be amazing to Institutional´s capitals earning from each spread done on every pair as APR


hi @orbitant @Danny how far marginx stop loss and take profit feature have been build

Progressively rolling out new features after thorough testing. On the frontend, we’ll be introducing 1-2 pairs a week.

We are on track to complete the road map as shown - Do refer to Road Map …

ICYMI, MarginX is a DEX (everything on-chain), not a CEX (everything on spreadsheet); it’s a different beast to develop.


how is the price at dex margin x obtained
what oracle does marginx use?

Try trading and you’ll discover where the last traded price comes from :slight_smile: