Compass

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

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

Drift: The Solana DEX Powering Onchain Liquidity | Cindy Leow & Chris Heaney

By Lightspeed

Published on 2024-03-14

Explore how Drift's Swift protocol is transforming Solana DeFi with lightning-fast perpetual trading, enhanced liquidity, and a vision for a decentralized financial future.

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

Introduction to Drift and Swift Protocol

Drift, a leading decentralized perpetual futures exchange on Solana, has introduced a groundbreaking upgrade to its platform: the Swift protocol. This innovative addition aims to revolutionize the speed and efficiency of on-chain trading, bringing it closer to the performance levels of centralized exchanges while maintaining the core principles of decentralization.

In a recent episode of the Lightspeed podcast, Cindy Leow and Chris Heaney from Drift joined host Jack to discuss the intricacies of Swift, its implications for the Solana ecosystem, and the broader vision for decentralized finance (DeFi) on Solana.

What is Drift?

Drift is a decentralized perpetual futures exchange built on the Solana blockchain. It offers users the ability to trade perpetual futures contracts, which are derivative instruments that allow traders to speculate on the future prices of cryptocurrencies without an expiration date. Drift's platform is designed to provide high leverage, low fees, and a wide range of tradable assets, all while maintaining the benefits of decentralization.

The Three-Way Liquidity System

At the core of Drift's functionality is its innovative three-way liquidity system. This system combines multiple approaches to ensure deep liquidity and efficient trading:

  1. On-chain order book: A traditional limit order book where users can place and match orders directly on the blockchain.
  1. Just-in-time (JIT) liquidity: A Dutch auction mechanism that activates when a market order is placed, allowing for dynamic price discovery and efficient order filling.
  1. Virtual AMM liquidity: An automated market maker component that provides additional liquidity to the system.

This multi-faceted approach allows Drift to offer competitive liquidity and pricing while operating entirely on-chain.

Introducing Swift: The Game-Changer

Swift is Drift's latest innovation, designed to significantly enhance the speed and efficiency of trading on the platform. As Cindy Leow explains:

"Swift is an evolution to the just-in-time liquidity auctions that now instead of users needing to place orders on chain, users can place orders in a channel directly to market makers, which has brought transaction speeds and transaction landing times to over five slots in previous just-in-time auctions to single slots now."

This improvement translates to a dramatic reduction in latency, bringing the execution speed of trades on Drift much closer to that of centralized exchanges. The key innovation lies in how Swift manages to achieve this without compromising on decentralization or moving assets off-chain.

How Swift Works

Swift introduces a new layer to Drift's existing infrastructure, sitting between users and the Solana network. Here's how it functions:

  1. Users sign and send trade messages directly to Swift nodes.
  2. Swift nodes relay these messages to market makers and keepers.
  3. Market makers can then execute trades on behalf of users, submitting transactions to the Solana network.

This process allows for faster order execution while maintaining the security and transparency of on-chain settlement. Importantly, all assets remain on the Solana blockchain throughout the entire process.

Decentralization and Security

One of the primary concerns with any new protocol in the DeFi space is its impact on decentralization. Drift's team emphasizes that Swift does not compromise the decentralized nature of their platform. Chris Heaney clarifies:

"Fundamentally, Swift makes Drift no less decentralized than it already is. All the orders are settled on chain. All the assets are on chain. So you get the censorship resistance to security of Solana, which has like a way higher locomotive coefficient."

The team compares Swift to an L2 (Layer 2) solution in terms of its relationship to the base layer, but with a crucial difference: users can always bypass Swift and interact directly with the on-chain contracts if they choose to do so.

Swift vs. Layer 2 Solutions

While Swift may appear similar to Layer 2 solutions at first glance, there are fundamental differences that set it apart. Unlike typical L2s, Swift does not maintain a separate state machine or rely on a centralized sequencer. Instead, it acts more as a messaging protocol that facilitates faster communication between users and market makers.

Chris Heaney explains the distinction: "For drift basically it's like you sign a message and then there's not a single sequencer that's like maintaining the state updates any market maker keeper can post it on chain and then say send the message to the swift node the swift node down you can just drop that message and you can send a normal transaction and get your order included."

This architecture ensures that Swift remains an optional enhancement to Drift's core functionality rather than a separate layer that users must interact with exclusively.

The Impact on Solana's Ecosystem

Swift's introduction raises questions about its impact on Solana's broader ecosystem, particularly in light of recent efforts to bring more transactions on-chain and reduce off-chain side deals. The Drift team views Swift as a complementary solution that works in harmony with Solana's ongoing improvements.

Chris Heaney shares his perspective: "The way I think about this is I think JIT liquidity is a medium term solution that works relatively well to make market making sustainable on chain. The current protocol design makes it hard to do things like order book and AMM's on chain."

He further explains that as Solana continues to improve its core protocol, solutions like Swift may become less necessary. However, for the time being, Swift provides a crucial bridge that allows Drift to offer competitive performance while the underlying blockchain evolves.

MEV and User Protection

Miner Extractable Value (MEV) has been a significant concern in the DeFi space, often leading to suboptimal prices for users due to practices like front-running and sandwich attacks. Swift addresses this issue by incorporating auction mechanisms that make it more difficult for malicious actors to exploit trade information.

The team explains that the goal of systems like Swift and just-in-time liquidity is to reduce negative MEV effects on users. By putting orders through an auction with a slow price decay, it becomes much harder for attackers to front-run or sandwich trades effectively.

The Perps Landscape on Solana

The discussion also touched on the broader landscape of perpetual futures trading on Solana, with Drift positioning itself among competitors like Jupiter, Mango Markets, and Zeta Markets. The team emphasizes that Drift's approach goes beyond just offering a perps trading platform.

Cindy Leow explains their vision: "Our big thesis is that as a super protocol that has multiple businesses and business lines growing you actually increase the usability of assets and capital efficiency within the protocol."

This multi-faceted approach includes features like cross-collateralization, borrow-lend functionality, and yield generation, all integrated within a single ecosystem.

Competing with Centralized Exchanges

A significant portion of the discussion focused on how decentralized exchanges like Drift can compete with centralized alternatives, particularly in the perpetual futures market. The team acknowledges the current dominance of centralized exchanges but sees a clear path forward for DeFi platforms.

Cindy Leow argues: "In every single way a decks perp is better than a sex perp you have more transparency you have more assets that that can come from assets that are launching on chain L on chain from day one versus on centralized exchanges and you have full custody of your assets."

The main hurdle, according to the team, has been performance. With innovations like Swift, Drift is closing this gap rapidly, potentially setting the stage for a shift in user preference towards decentralized solutions.

The Foundation Model and Ecosystem Growth

Drift is not content with simply improving its own platform; the team is actively working to foster growth across the entire Solana DeFi ecosystem. They hint at upcoming initiatives, including a foundation model that will support and accelerate other DeFi projects.

Cindy Leow shares their vision: "We are working on initiatives with the sign of foundation to you know have to launch DeFi accelerators where we're helping DeFi teams grow and they don't necessarily have all to be built on trips because the foundation's mission is to accelerate that option of DeFi using just smart contracts."

This approach demonstrates Drift's commitment to the broader success of DeFi on Solana, rather than focusing solely on their own product's dominance.

The Future of DeFi on Solana

Looking ahead, the Drift team sees several key factors that will drive the growth and adoption of DeFi on Solana:

  1. Institutional adoption: Bringing more institutional players into the DeFi space can provide significant liquidity and credibility.
  1. Real-world asset integration: Incorporating tokenized real-world assets and yields can expand the ecosystem's capacity and appeal.
  1. Continued technological improvements: As Solana's core protocol evolves, it will enable even more efficient and user-friendly DeFi applications.
  1. Regulatory clarity: As the regulatory landscape becomes clearer, it may encourage more developers and users to engage with DeFi platforms.

Chris Heaney emphasizes the importance of patience and perspective: "I think when I zoom out and I look at how much progress has been made and since I started working in crypto in 2021 I think the tech has gotten a lot better and I think people probably understate how much the regulatory regulatory uh lack of clarity stop people from building on chain."

Conclusion

Drift's Swift protocol represents a significant leap forward in the quest to bring centralized exchange-level performance to decentralized platforms. By addressing key issues of speed and efficiency without compromising on decentralization, Drift is positioning itself at the forefront of DeFi innovation on Solana.

As the ecosystem continues to evolve, solutions like Swift may play a crucial role in bridging the gap between the performance demands of traders and the fundamental principles of decentralized finance. With ongoing improvements to Solana's core protocol and a growing ecosystem of interoperable DeFi applications, the future looks bright for on-chain trading and financial services.

The success of projects like Drift and innovations like Swift demonstrate the vibrant and rapidly evolving nature of the Solana ecosystem. As more users and institutions recognize the benefits of decentralized finance, platforms that can offer competitive performance alongside the security and transparency of blockchain technology are likely to see increased adoption and success.

Facts + Figures

• Drift is a decentralized perpetual futures exchange built on Solana, offering high leverage, low fees, and a wide range of tradable assets.

• Drift's platform utilizes a three-way liquidity system: on-chain order book, just-in-time (JIT) liquidity, and virtual AMM liquidity.

• The Swift protocol reduces transaction landing times from over five slots to single slots, significantly improving execution speed.

• Swift maintains full decentralization by keeping all assets and order settlements on-chain.

• Drift has over a billion dollars in Total Value Locked (TVL).

• The platform offers the highest leverage, lowest fees, and most assets for perpetual futures trading on Solana.

• Drift's borrow-lend functionality is the second largest on Solana.

• The platform's vaults, managed by external entities like Gauntlet, are currently returning over 30% APR.

• Drift is working on DeFi accelerator initiatives with the Solana Foundation to support ecosystem growth.

• The team sees tokenized private credit funds as a potential source of sustainable 9-13% yields in DeFi.

Questions Answered

What is Drift?

Drift is a decentralized perpetual futures exchange built on the Solana blockchain. It allows users to trade perpetual futures contracts, which are derivative instruments for speculating on cryptocurrency prices without expiration dates. Drift's platform is designed to offer high leverage, low fees, and a wide range of tradable assets while maintaining the benefits of decentralization through its innovative three-way liquidity system.

How does Swift improve Drift's performance?

Swift significantly enhances Drift's performance by reducing transaction landing times from over five slots to single slots. This improvement is achieved by allowing users to place orders directly to market makers through a dedicated channel, rather than submitting all orders on-chain. As a result, Swift dramatically reduces latency and brings the execution speed of trades on Drift much closer to that of centralized exchanges, all while maintaining the security and transparency of on-chain settlement.

Is Swift a Layer 2 solution?

No, Swift is not a Layer 2 solution in the traditional sense. Unlike typical L2s, Swift does not maintain a separate state machine or rely on a centralized sequencer. Instead, it acts as a messaging protocol that facilitates faster communication between users and market makers. All assets and order settlements remain on the Solana blockchain, and users always have the option to interact directly with the on-chain contracts, bypassing Swift if they choose to do so.

How does Drift compete with centralized exchanges?

Drift competes with centralized exchanges by offering the benefits of decentralization (such as asset custody and transparency) while striving to match the performance of centralized platforms. With innovations like Swift, Drift is closing the gap in execution speed and efficiency. Additionally, Drift's multi-faceted approach, which includes features like cross-collateralization, borrow-lend functionality, and yield generation, aims to provide a more comprehensive and capital-efficient trading ecosystem than traditional centralized exchanges.

What is Drift's vision for the future of DeFi on Solana?

Drift envisions a future where DeFi on Solana becomes increasingly accessible, efficient, and integrated with traditional finance. This includes fostering institutional adoption, incorporating real-world assets and yields, continuing technological improvements, and navigating regulatory clarity. Drift is actively working towards this vision through its own platform development and by supporting ecosystem growth through initiatives like DeFi accelerators and collaborations with the Solana Foundation.

Related Content

Building Solana's Largest Perps DEX | Cindy Leow & Chris Heaney

Explore how Drift Protocol is revolutionizing DeFi on Solana with innovative perpetuals trading, governance models, and ecosystem growth strategies.

Drift: Can This Solana DEX Compete With Binance? | Cindy Leow, Chris Heaney

Discover how Drift is building the future of decentralized finance on Solana, offering a unique liquidity trifecta and aiming to compete with centralized exchanges like Binance.

Building Binance On-Chain | Cindy Leow & Chris Heaney, Drift Protocol

Discover how Drift Protocol is building the future of decentralized perpetual futures trading on Solana, aiming to rival centralized exchanges like Binance.

Powering Solana's Onchain Economy | Garrett Harper & Stepan Simkin

Discover how Squads Protocol is transforming Solana's ecosystem with innovative smart account solutions, enhancing security and user experience for both enterprises and consumers.

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.

Meet DeFi 2.0 ft. Timeswap

Discover how Timeswap is transforming DeFi with its innovative oracle-less lending and borrowing protocol, offering a new paradigm for decentralized finance.

The Future of NFTs with Underdog Protocol: Redefining Digital Assets

Explore how Underdog Protocol is transforming NFTs on Solana, offering gas-free minting, all-in-one APIs, and innovative tools like Passport for seamless user experiences.

Farcaster: How Warpcast Could Become Crypto's First Mainstream App | Dan Romero

Discover how Farcaster and Warpcast are reshaping social media with decentralized protocols, innovative features like Frames, and a vision for a more open internet.

Wtf is StakeNet with Architect Evan | ep. 18

Discover how Jito's StakeNet is transforming Liquid Staking Tokens on Solana, enhancing decentralization and transparency in validator selection and stake delegation.

Validated | Can DePIN Build a Better Map Than Google?

Explore how HiveMapper is challenging Google Maps with blockchain technology and decentralized mapping, offering fresher data and fair rewards for contributors.

DRiP: Crypto's Best Shot At Mainstream Adoption | Vibhu Norby

Explore how DRiP is transforming NFT distribution and creator economics on Solana, with insights from founder Vibhu Norby on mainstream crypto adoption.

Paul's Vision for Decentralizing Rideshare with Teleport

Discover how Teleport is building a decentralized rideshare protocol on Solana to disrupt the industry and empower drivers and riders.

The Future of Liquid Staking on Solana | FP Lee

Discover how Sanctum is transforming liquid staking on Solana, creating an infinite LST future with enhanced liquidity and user-friendly solutions.

Kamino 2.0: Brand New Borrow/Lend Market on Solana

Explore Kamino 2.0's groundbreaking Borrow/Lend market on Solana, featuring automated yield strategies and the future of decentralized finance.

Unlocking DeFi With Infinex | Kain Warwick

Discover how Infinex is transforming DeFi with improved UX, cross-chain integration, and innovative token distribution models on Solana and beyond.