Earn 5.76% APY staking with Solana Compass + help grow Solana's ecosystem

Stake natively or with our LST compassSOL to earn a market leading APY

Podcast Summary

How Zeta Markets' L2 Makes a DEX Feel Like a CEX w/ Tristan Frizza

Solana 🧭 Compass By Solana 🧭 Compass Aug 13, 2024 16 min read

Discover how Zeta Markets is revolutionizing DeFi with their L2 solution on Solana, offering CEX-like speed and efficiency for decentralized perpetuals trading.

The notes below are AI generated and may not be 100% accurate. Watch the video to be sure!

Introduction to Zeta Markets

Zeta Markets is a pioneering force in the world of decentralized finance (DeFi), specifically focusing on bringing sophisticated derivatives trading to the blockchain. Founded in early 2021, Zeta Markets has set out to revolutionize the way we think about on-chain trading, particularly in the realm of perpetual futures contracts, commonly known as perps.

Tristan Frizza, one of the founders of Zeta Markets, shares the inspiration behind the project: "We got introduced to Anatoly in the very early days of Solana. We're fortunate enough to kind of see the benefits of Solana and what could be built in DeFi." This early insight into Solana's potential set the stage for what would become a groundbreaking venture in the crypto space.

The Vision: Bringing NASDAQ On-Chain

The core vision of Zeta Markets was crystallized by a statement from Solana's founder, Anatoly Yakovenko. Frizza recalls, "It stuck with me when Tolly said that we want to bring NASDAQ on chain." This ambitious goal became the driving force behind Zeta's development, aiming to create a decentralized exchange that could rival the efficiency and sophistication of traditional financial markets.

Perpetuals: The Heart of Zeta's Offering

At the center of Zeta Markets' offering are perpetual futures contracts, or perps. These financial instruments have become increasingly popular in the crypto space due to their unique advantages. Frizza explains, "Perps are one of the most ubiquitous products out there for trading. It gives you leverage. It gives you really good kind of price discovery and capital efficiency."

The appeal of perps lies in their flexibility and efficiency. They allow traders to go long or short on an asset without the need to own the underlying cryptocurrency. This opens up a world of trading strategies and opportunities that were previously limited in the decentralized space.

The Challenge of Decentralized Derivatives

While centralized exchanges like Binance and ByBit have dominated the perps trading market, the decentralized space has lagged behind. Frizza points out the key attributes that DeFi enthusiasts have been yearning for: "We want to see self custody. We want to see transparency. We want to see things being done in code on chain."

Bringing these features to life in a decentralized environment has been no small feat. The team at Zeta Markets had to overcome significant technical challenges to create a fully on-chain central limit order book for perps trading, complete with leverage and a comprehensive margin system.

Zeta's Achievements and Growth

The hard work has paid off, with Zeta Markets achieving impressive milestones. Frizza proudly states, "We've done, I think, over $10 billion worth of trading volume. We've catered to over 100,000 users." These figures underscore the growing appetite for decentralized derivatives trading and validate Zeta's approach to the market.

The Evolution of DeFi Infrastructure

The journey of Zeta Markets mirrors the broader evolution of DeFi infrastructure. Frizza reflects on this progression: "We've kind of gone through this early DeFi wave, you know, years ago where we have Ethereum, which people like to liken to, I guess, the kind of dial up internet."

This analogy aptly describes the limitations of early blockchain networks, which struggled with low bandwidth and slow transaction times. These constraints made it challenging to implement complex financial instruments like derivatives in a decentralized manner.

Solana: A Game-Changer for DeFi

The emergence of Solana as a high-performance blockchain marked a turning point for projects like Zeta Markets. Frizza notes, "Solana in its present state and over the last couple of years, I think has been really good in that it has enabled a bunch of these fully on chain exchanges."

Solana's high throughput and low latency made it possible to implement sophisticated trading mechanisms like central limit order books on-chain. This was a significant leap forward, enabling DeFi protocols to offer trading experiences more akin to those found on centralized exchanges.

The Complexity of On-Chain Options

Zeta Markets initially set out to create an options trading platform, which presented its own set of unique challenges. Frizza recalls the technical hurdles: "I actually built the first Black-Scholes formula for options margin and wrote it all in Solana in like, basically, all the kind of Solana smart contract code."

This endeavor required significant reengineering of traditional financial models to fit within the constraints of blockchain technology. Even basic mathematical operations, like floating-point calculations, had to be reimagined due to the computational limitations of smart contracts.

Competing with Centralized Exchanges

Despite the advancements made possible by Solana, decentralized exchanges still face challenges when competing with their centralized counterparts. Frizza explains, "When you're looking at a Binance, what do they have? They have extremely fast place order latency. It's on the order of milliseconds."

This speed advantage is particularly crucial for market makers, who rely on rapid order execution to manage risk and provide liquidity. The slight delay in block times on even the fastest blockchains can make a significant difference in high-frequency trading scenarios.

The Market Maker's Dilemma

The importance of speed for market makers cannot be overstated. Frizza illustrates this with an example: "If they're wrong about that, someone comes in there and they do this toxic order flow. They take this thing and they're like, boom, I just made $10,000 or something or other of that."

This scenario highlights the razor-thin margins that market makers operate on and why even small delays can result in significant losses. It's a key reason why many professional trading firms have been hesitant to fully embrace decentralized exchanges.

Zeta's L2 Solution: Bridging the Gap

To address these challenges and truly compete with centralized exchanges, Zeta Markets is developing an innovative Layer 2 (L2) solution. Frizza explains the rationale: "We want to kind of take the best properties of Solana in terms of speed and scalability and tailor it, I guess, to the kind of DeFi and Perp's use cases."

This L2 solution aims to bring down latencies, increase speed, and optimize the gas fee structure to create a more user-friendly experience. By doing so, Zeta hopes to onboard more users and liquidity providers, narrowing the gap between decentralized and centralized trading platforms.

The Architecture of Zeta's L2

Zeta's L2 solution is built on a sophisticated architecture that leverages the security of Solana while introducing new elements to enhance performance. Frizza describes it as "a virtual machine, it won't be SVM, at least for now, it would just be kind of like a general purpose, like Rust virtual machine to be more specific. It's a zero knowledge or ZK VM."

This approach allows Zeta to run arbitrary Rust code for their matching engine and order book, providing the flexibility needed for a high-performance trading platform. The use of zero-knowledge proofs ensures that the computation remains verifiable, maintaining the trustless nature of decentralized systems.

Sequencers and Data Availability

A key component of Zeta's L2 system is the sequencer, which orders transactions and manages the state of the exchange. Frizza explains, "All it does is just order transactions. So that's kind of what Solana does on the L1, but we kind of need it on the L2."

The sequencer plays a crucial role in achieving the low latency that professional traders demand. By centralizing certain aspects of the order processing, Zeta can dramatically reduce response times while still maintaining the security and transparency of a decentralized system.

The Importance of Data Availability

To ensure the integrity of the L2 system, Zeta posts transaction data back to the Solana mainnet. This process, known as data availability, is crucial for the security and verifiability of the L2. Frizza notes, "People can kind of go read the data availability layer when it becomes available and they'll be able to run those transactions through themselves, verify everything."

This approach allows users to verify the state of the L2 independently, ensuring that the centralized sequencer cannot commit fraud or manipulate the system. It's a crucial aspect of maintaining trust in a system that aims to combine the speed of centralized exchanges with the transparency of decentralized platforms.

Pre-Confirmations and User Experience

One of the most exciting features of Zeta's L2 solution is the concept of pre-confirmations. Frizza explains, "You can actually talk directly to the sequencer. And even though it's like not 100% guaranteed, it's probably like 99.99% that this thing's not going to roll back."

This feature allows users to receive near-instant feedback on their trades, with confirmation times as low as 5 milliseconds. While not as definitive as a full on-chain confirmation, it provides a user experience much closer to that of a centralized exchange, addressing one of the major pain points of current DEXs.

Withdrawal Times and Security Considerations

While the L2 solution dramatically improves trading speed, withdrawals from the system require additional security measures. Frizza acknowledges that initially, withdrawal times might be longer: "I think optimism is seven days. I think ours because a lot of block times are kind of a lot faster. Obviously we can probably bring that down a bunch to within a day, probably a bit less than a day."

The team is exploring ways to reduce these times further, potentially leveraging zero-knowledge proofs to expedite the process. The goal is to strike a balance between security and user convenience, with the potential to bring withdrawal times down to as little as 15-30 minutes in the future.

The Challenge of Proving Costs

One of the ongoing challenges in the world of zero-knowledge proofs is the computational cost associated with generating and verifying proofs. Frizza acknowledges this issue: "Proving costs are pretty significant. It's why you see stuff like stockware, I think actually has like massive, massive proving costs and they have to kind of batch and amortize stuff over."

This challenge highlights the need for continued innovation in the space, both in terms of hardware acceleration for ZK proofs and in developing more efficient proving systems. It's an area where Zeta, like many projects in the space, is actively exploring solutions.

The Status of Zeta's L2 Development

As of the time of the podcast, Zeta's L2 solution was in advanced stages of development. Frizza shares, "I'm actually hoping to get a demo out by breakpoint, ideally a live demo." This indicates that the project is moving rapidly towards a tangible product that can be showcased to the community.

The development process has involved a complete redesign of many aspects of the exchange, leveraging the team's years of experience in building decentralized trading platforms. Frizza notes, "Pulling ourselves away from the old terrible serum code base is like a is an absolute blessing."

Solana as a Data Availability Layer

One of the most intriguing aspects of Zeta's L2 solution is its use of Solana as a data availability layer. Frizza explains the rationale: "Solana has very or fairly abundant bandwidth and quite a lot like cheap storage and you're getting all this kind of a state state compression stuff coming out."

This approach leverages Solana's strengths while allowing Zeta to build a more specialized layer on top. It also opens up possibilities for interoperability with other projects that might use Solana as a data availability layer in the future, potentially creating a rich ecosystem of interconnected L2 solutions.

The Future of Decentralized Derivatives Trading

As Zeta Markets continues to develop its L2 solution, the future of decentralized derivatives trading looks increasingly promising. By addressing the key challenges of speed, efficiency, and user experience, Zeta is paving the way for a new era of DeFi that can truly compete with centralized alternatives.

The project's commitment to transparency, security, and decentralization, combined with its innovative technical approach, positions it at the forefront of the evolving DeFi landscape. As the crypto market continues to mature, platforms like Zeta Markets will play a crucial role in bridging the gap between traditional finance and the world of blockchain-based trading.

Conclusion: A New Paradigm for DeFi

Zeta Markets represents a new paradigm in decentralized finance, one that seeks to combine the best aspects of centralized and decentralized systems. By leveraging the security and transparency of Solana while introducing novel L2 solutions, Zeta is creating a platform that could revolutionize how we think about on-chain derivatives trading.

As the project moves towards its public demo and eventual launch, it will be fascinating to see how the market responds to this innovative approach. If successful, Zeta Markets could set a new standard for performance and functionality in the DeFi space, bringing us one step closer to the vision of a fully decentralized financial system that can rival and even surpass its traditional counterparts.

Facts + Figures

• Zeta Markets was founded in early 2021, inspired by Solana's potential for DeFi applications.

• The project has facilitated over $10 billion worth of trading volume since its inception.

• Zeta Markets has catered to over 100,000 users, demonstrating significant adoption in the DeFi space.

• The platform offers perpetual futures contracts (perps) with leverage and a full margin system.

• Zeta Markets built the first Black-Scholes formula for options margin on Solana smart contracts.

• The project's L2 solution aims to achieve pre-confirmation times as low as 5 milliseconds.

• Initial withdrawal times from the L2 to L1 are expected to be less than a day, with plans to reduce this to 15-30 minutes.

• Zeta's L2 uses a zero-knowledge virtual machine (ZK VM) for its matching engine and order book.

• The project plans to use Solana as a data availability layer for its L2 solution.

• Zeta Markets is working with infrastructure partners like Sovereign Labs to develop its rollup technology.

• The team aims to showcase a demo of their L2 solution at the upcoming Breakpoint conference.

• Zeta's new design supports multi-collateral margin, moving beyond just USDC.

• The project is transitioning away from the original Serum codebase to a custom Rust implementation.

• Zeta Markets is exploring the use of zero-knowledge proofs to potentially reduce withdrawal times further.

• The team acknowledges the significant costs associated with ZK proving and is actively working on solutions.

Questions Answered

What is Zeta Markets?

Zeta Markets is a decentralized perpetuals trading platform built on Solana. It offers a fully on-chain central limit order book for trading perpetual futures contracts with leverage and a comprehensive margin system. The platform aims to bring the efficiency and sophistication of traditional financial markets to the decentralized finance (DeFi) space, allowing users to trade with self-custody of their assets and full transparency of operations.

How does Zeta Markets' L2 solution work?

Zeta Markets' L2 solution uses a custom virtual machine running Rust code for its matching engine and order book. It employs a sequencer to order transactions quickly, achieving near-instant pre-confirmations. The system then posts transaction data back to Solana for data availability, ensuring security and verifiability. This architecture allows for significantly faster trading speeds while maintaining the decentralized nature of the platform.

What advantages does building on Solana offer Zeta Markets?

Building on Solana provides Zeta Markets with high throughput and low latency, essential for operating a decentralized exchange with a central limit order book. Solana's performance allows for complex financial operations to be executed on-chain, which was previously challenging on other blockchains. Additionally, Solana's abundant bandwidth and cheap storage make it an ideal data availability layer for Zeta's L2 solution.

How does Zeta Markets plan to compete with centralized exchanges?

Zeta Markets aims to compete with centralized exchanges by developing an L2 solution that dramatically reduces latency and increases transaction speed. This allows for near-instant pre-confirmations and a user experience similar to centralized platforms. By combining this speed with the benefits of decentralization - such as self-custody and transparency - Zeta hopes to offer a compelling alternative to centralized exchanges while maintaining the principles of DeFi.

What challenges does Zeta Markets face in implementing its L2 solution?

One of the main challenges Zeta Markets faces is balancing speed with security in its L2 solution. While the system can achieve very fast pre-confirmations, final settlements and withdrawals to the base layer still require additional time for security reasons. Another significant challenge is the computational cost of zero-knowledge proofs, which the team is actively working to address. Additionally, creating a user experience that matches centralized exchanges while maintaining decentralization principles presents ongoing design and implementation challenges.

How does Zeta Markets handle liquidations?

Zeta Markets uses a permissionless liquidation system where anyone can run a bot to perform liquidations. This open approach ensures that positions are liqui

dated efficiently when they become undercollateralized, protecting the exchange and other users from potential losses. The system leverages Solana's speed to execute liquidations quickly, minimizing the risk of bad debt accumulation.

What improvements is Zeta Markets making in its new L2 design?

In its new L2 design, Zeta Markets is implementing several improvements. These include support for multi-collateral margin, moving beyond just USDC to allow users to use various assets as collateral. The team is also completely redesigning the exchange infrastructure, transitioning away from the original Serum codebase to a custom implementation in Rust. This redesign aims to incorporate lessons learned from years of operating a decentralized exchange and optimize for the specific needs of perpetuals trading.

What role does Solana play in Zeta Markets' future plans?

Solana plays a crucial role in Zeta Markets' future plans as both the base layer for security and as a data availability layer for the L2 solution. By leveraging Solana's high performance and low-cost storage, Zeta can build a more specialized trading layer while still benefiting from Solana's robust ecosystem and security model. This approach also opens up possibilities for future interoperability with other projects that might use Solana in similar ways.

How does Zeta Markets ensure the security and transparency of its platform?

Zeta Markets ensures security and transparency through several mechanisms. The use of smart contracts for custody means users always control their funds. All trading operations are executed on-chain, allowing for full auditability. The L2 solution posts transaction data back to Solana, enabling independent verification. Additionally, the permissionless nature of functions like liquidations allows for community participation in maintaining the system's integrity. These features combined create a transparent and secure trading environment that aligns with DeFi principles.

What is the timeline for Zeta Markets' L2 solution launch?

While an exact launch date wasn't specified, Zeta Markets is making significant progress on its L2 solution. The team aimed to showcase a demo at the Breakpoint conference, indicating that development is in advanced stages. Following the demo, there will likely be further testing and refinement before a full public launch. The project is actively working on various components, including the core exchange logic, the rollup infrastructure, and integration with Solana as a data availability layer.


Comments

Please login to leave a comment.

Related Content

How Solana Enables Crypto's Onchain Future | Tristan Frizza

Discover how Zeta Markets is revolutionizing DeFi with their Solana-based L2 solution, offering lightning-fast trades and improved UX for crypto derivatives.

Breakpoint 2024: Product Keynote: Zeta Markets (Tristan Frizza)

Zeta X: The future of DeFi trading on Solana with centralized exchange performance and decentralized security

The Future Of DeFi On Solana | Tristan Frizza & Jayant Krishnamurthy

Explore the future of DeFi on Solana with insights on high-performance trading, oracle solutions, and the impact of meme coins from industry experts.

Solana's Watershed Moment | Zeta Markets, Meteora, Hubble Protocol

Explore Solana's recent partnerships, improved developer experience, and the future of DeFi 2.0 with insights from leading Solana DeFi founders.

Solana Ecosystem Call ft. Meteora, Sanctum, and Drift Labs (May 2024)

Discover the latest Solana ecosystem updates, including Stripe's integration, Sanctum's Wonderland launch, and Meteora's groundbreaking liquidity solutions. Learn about new token launches and exciting developments in DeFi and NFTs.

Solana's Next Narrative | Weekly Roundup

Explore Solana's evolving narrative, from meme coins to sustainable businesses, and the challenges facing crypto discourse in this in-depth roundup.

Scale or Die at Accelerate 2025: Building The On-Chain NASDAQ

Bullet's on-chain NASDAQ: 3ms trades, ZK roll-ups, and the future of DeFi on Solana

Solana Ecosystem Call ft. Balaji, Backpack, Firedancer, BONK, Credix, & Clockwork (Feb 23)

Discover the latest developments in the Solana ecosystem, including Balaji's network state track, Backpack's X-NFT apps, Firedancer's optimizations, and BONK's cultural impact.

Solana's Emergence as a Payments Hub | Roundup

Explore Solana's growing prominence in crypto payments, featuring Visa's USDC settlement, Shopify integration, and the evolution of DeFi on the blockchain.

Why $ETH Value Accrual Is Dead & Bitcoin's Days Are Numbered I Bullpen Roundup w/ 0xBreadGuy

Explore the complexities of Ethereum's L2 scaling strategy, its impact on ETH value accrual, and the potential threats to Bitcoin's dominance in the crypto landscape.

Lightspeed DeFi Solana Panel with Jito, Ellipsis Lab, and Margin Labs

Leading Solana DeFi projects share insights on ecosystem growth, liquid staking tokens, and upcoming innovations in this must-listen panel discussion.

Why Solana Will Eventually Flip Ethereum | Kyle Samani

Multicoin Capital's Kyle Samani discusses Solana's potential to overtake Ethereum, the future of L1s vs L2s, and key crypto use cases like stablecoins and DePIN.

Jupiter: The Aggregator Fueling Solana's GDP | Meow

Discover how Jupiter Exchange is transforming Solana's ecosystem, onboarding millions of users, and driving the future of decentralized finance.

Ship or Die 2025: Magicians in Space: Creating Great Consumer Experiences

Learn how to create delightful Web3 products that feel magical to users, even without understanding blockchain complexities

Embracing Memes, Speculation, NFTs (and more) with @fxnction

Explore the world of NFTs, crypto speculation, and community building with trader @fxnction. Learn about the evolving crypto landscape and the importance of emotional intelligence in trading.

Solana tokens

Solana Token Markets

Explore all tokens →