From: thepipeline_xyz

Introduction

The realm of DeFi trading, particularly in perpetual exchanges (perps), presents unique challenges and opportunities for innovation. While the core concept of perpetual contracts has gained significant traction, the decentralized nature of blockchain technology introduces complexities not seen in traditional finance or even centralized crypto exchanges [07:21:00]. Builders in this space aim to create products that offer a superior user experience while upholding the principles of decentralization and censorship resistance [00:00:06].

The Ambition of Fully Onchain Perpetual Exchanges

The co-founder of Purple, PBJ, highlights the ambitious nature of their product: building a fully onchain perpetual exchange (PerpDex) on an EVM-compatible generalized Layer 1 (L1) blockchain like Monad [07:25:00]. Historically, achieving this has been challenging because most successful claw-based PerpDexes, like dYdX and Hyperliquid, operate as app chains on Cosmos-based chains, not generalized EVM L1s [07:50:00]. This distinction is crucial due to the inherent problems associated with running a high-performance trading venue on a generalized L1 [08:01:00].

Core Product: Purple

Purple is a perpetual exchange built natively on Monad [01:28:09]. The name “Purple” signifies “Perp on Purple Chain” [05:47:00]. The idea for Purple originated from a trading team, Argonia, who recognized Monad’s potential as a fast chain for market making [06:22:00]. This collaboration combines deep engineering expertise with insights from experienced traders who have operated on various perpetual and centralized exchanges [06:36:00]. Purple recently closed a $9.25 million funding round led by Dragonfly and Argonia, with participation from other funds and prominent angel investors from trading firms like HRT, Jump, and Barbellos [02:11:00].

Challenges in Onchain Trading

Architectural Limitations

Previous attempts at onchain perpetual exchanges on Ethereum faced limitations due to slow block times (12 seconds), making proper market making difficult [12:58:00]. This led to Automated Market Makers (AMMs) becoming the de facto solution for onchain perps [13:12:00]. Similarly, attempts on Solana faced issues with market makers consistently providing liquidity [13:08:08].

Gas Fees and Order Prioritization

One significant challenge for onchain trading on a generalized L1 is dealing with gas fees [15:35:00]. App chains like Hyperliquid can implement custom opcodes to avoid gas fees for certain operations (e.g., collecting funding rates) and can even prioritize specific orders, such as cancel orders [15:05:05]. This prioritization is crucial for market makers to react quickly to market events and avoid being “run over” by sudden price movements [15:42:00]. On a generalized L1, developers cannot control chain-level mechanics to offer such prioritization [16:19:00].

User Experience (UX) Complexity

Perpetual contracts are inherently complex and not always retail-friendly [09:32:00]. The flashing order book and constant data movement can be intimidating for new users [10:12:00]. Designing a UX that caters to both retail traders and professional users (whales) with differing needs is a significant hurdle [10:27:00].

Decentralization vs. Control Trade-offs

While centralized exchanges or app chains offer more control (e.g., over chain parameters, order prioritization), they sacrifice decentralization [18:58:00]. This trade-off became evident during events like the “Jelly Jelly attack,” where a centralized system could “rewrite history,” undermining the core crypto ethos of “don’t trust, verify” [20:04:00]. For institutions, the lack of true decentralization and the potential for arbitrary changes to rules present a significant barrier to adoption [21:51:00].

Innovations and Solutions

Leveraging Generalized L1 Advantages (Monad)

Purple addresses many challenges by building on Monad, a generalized EVM L1 designed for high-performance trading [13:36:06].

  • Speed: Monad’s 500-millisecond block time significantly improves the trading experience compared to slower chains [00:41:00].
  • Native USDC: Monad provides native USDC support from day one, eliminating the need for wrapped tokens and associated headaches, which is crucial for a PerpDex [00:18:00] [14:17:00]. This allows users to easily bridge USDC from other chains and start trading [14:19:00].
  • Composability: Being on a generalized L1 like Monad allows for greater composability within the broader DeFi ecosystem [14:47:00]. Users can park assets like MONI tokens, Bitcoin, or Ethereum in lending protocols (e.g., Euler, Aave) to borrow USDC and then use it for perpetual trading on Purple [14:30:00].
  • Decentralization: Purple leans into the decentralization of Monad, offering censorship resistance [00:06:00] [19:19:00]. This prevents arbitrary changes to the system, building trust for users and future institutional adoption [22:00:00].

Innovative Solutions for Market Makers

To address the lack of custom order prioritization on a generalized L1, Purple introduces “time-enforced orders” [16:27:00]. Market makers can place orders that are only active for a specific number of blocks (e.g., two to three blocks), automatically expiring without needing a separate cancel order [16:33:00].

Enhancing Liquidity and Risk Management

  • Vaults: Purple aims to use vaults, potentially integrated with solutions like Fireblocks, to help market makers hedge their risk for certain tokens [17:08:00]. This allows market makers to access spot liquidity on Monad, making it easier to list new tokens and deepen liquidity on Purple, while passive participants can still earn yield [17:54:00].
  • Diverse Liquidity: Unlike systems that rely on a single large market maker or an HLP (Hyperliquid LP) model, Purple focuses on attracting professional market makers [17:17:00].

Modular User Experience (UX)

Purple plans a modular approach to its UX, similar to Kraken, offering different interfaces tailored to various user types [09:53:00].

  • One-Click Trading: A simplified UX for quick trades [10:04:00].
  • Retail-Friendly: An interface for general users that avoids overwhelming them with flashing order books and complex charts [10:09:00].
  • Professional User: A comprehensive UX providing all necessary data for experienced traders [10:17:00].
  • Open Development: By building on a generalist L1, Purple encourages other developers to build innovative UX layers on top of its core smart contracts, such as Telegram bots, LLM interfaces, or other unique ways to interact with the exchange [11:01:00].

The Future of DeFi Trading

Perpetual exchanges are considered one of the best innovations in the crypto space, serving as a new financial primitive that caters to the strong demand for trading and speculation [11:25:00]. The current DeFi market is still nascent, with many iterations and experiments across different ecosystems [12:46:00]. However, the continuous innovation, institutional adoption, and the emergence of fast, composable L1s like Monad indicate a promising future for fully onchain DEXes and PerpDexes [27:02:00].