This Solana swap app is trying to make sandwich attacks more costly

DFlow put an interesting solution on the table in proposing conditional liquidity to divide toxic from non-toxic order flow

article-image

Artwork by Crystal Le

share


This is a segment from the Lightspeed newsletter. To read full editions, subscribe.


Earlier this year, Solana’s network congestion created a lot of concern over traders’ ability to land transactions onchain. 

Today, traders have a much easier time landing trades, but the concern has refocused on the prices they get while doing so. 

Widespread sandwich attacks, whereby sophisticated traders exploit price spreads at the expense of unsophisticated traders, have proven to be a long-running and tricky-to-solve issue. The Solana swap app and market infrastructure firm DFlow put an interesting new solution on the table when it proposed conditional liquidity, which tasks new market intermediaries with separating toxic from non-toxic order flow.

When a DEX trader tries to swap one cryptocurrency for another, they are quoted a price and allowed to set slippage, which is the percentage that the quoted price can change after the order is submitted. Solana sandwich attackers exploit slippage by front-running transactions to artificially raise the price a few basis points before selling the asset right after at a profit — leaving the user with a worse price. In the aggregate, sandwich attackers can make millions per day

DFlow proposes adding a new class of market participants called segmenters to divide toxic from non-toxic order flow and limit sandwich attacking. 

Segmenters, which will initially be chosen by DFlow, sit between users who submit the transactions and the DEXs that receive them, and basically sort good from bad transactions. When DEXs receive these labeled transactions, they can then charge higher fees to sandwichers and lower fees to everyone else. 

Conditional liquidity “doesn’t completely solve sandwiching” but can reduce it by charging different rates, DFlow founder Nitesh Nath said. “The magnitude of sandwich reduction is proportional to the difference in the higher rate for toxic flow and the lower rate for non-toxic flow.” 

DFlow already launched a segmenter called DFlow Aggregator and a conditional liquidity DEX called Clearpool.

Segmenters are meant to create a marketplace for order flow, where the better the prices segmenters achieve for users, the more order flow DEXs and wallets send them. Segmenters make money by collecting some of the price improvement they provide. 

“Conditional liquidity aligns the interests of retail traders, DEXs and the network — a win-win-win for all parties involved. We expect conditional liquidity to be one of the big breakout trends of 2025,” JR Reed, partner at DFlow investor Multicoin Capital, said.

Chris Chung, CEO of the Solana swap app Titan, said he believes conditional liquidity could give honest traders better prices, but it could be hard to get DEXs to start accepting the new market structure. DEXs would only start altering their fees if there was sufficient demand for conditional liquidity from the venues where traders are placing orders, but those venues will also want to see DEXs integrate the feature first. 

“It becomes a chicken and [egg] problem,” Chung said in a text, adding that the demand question may be partly why DFlow launched its own segmenter and DEX.

Nath told me a “handful” of large wallets and apps have inquired about integrating conditional liquidity, though he declined to say which ones. 


Start your day with top crypto insights from David Canellis and Katherine Ross. Subscribe to the Empire newsletter.

Explore the growing intersection between crypto, macroeconomics, policy and finance with Ben Strack, Casey Wagner and Felix Jauvin. Subscribe to the Forward Guidance newsletter.

Get alpha directly in your inbox with the 0xResearch newsletter — market highlights, charts, degen trade ideas, governance updates, and more.

The Lightspeed newsletter is all things Solana, in your inbox, every day. Subscribe to daily Solana news from Jack Kubinec and Jeff Albus.

Tags

Upcoming Events

Javits Center North | 445 11th Ave

Tues - Thurs, March 18 - 20, 2025

Blockworks’ Digital Asset Summit (DAS) will feature conversations between the builders, allocators, and legislators who will shape the trajectory of the digital asset ecosystem in the US and abroad.

Brooklyn, NY

TUES - THURS, JUNE 24 - 26, 2025

Permissionless IV serves as the definitive gathering for crypto’s technical founders, developers, and builders to come together and create the future.If you’re ready to shape the future of crypto, Permissionless IV is where it happens.

Old Billingsgate

Mon - Wed, October 13 - 15, 2025

Blockworks’ Digital Asset Summit (DAS) will feature conversations between the builders, allocators, and legislators who will shape the trajectory of the digital asset ecosystem in the US and abroad.

recent research

Flashnote Template (6).png

Research

Trading of the President's TRUMP memecoin sent the market capitalization to over $15B, resulting in all-time highs for Solana’s Real Economic Value, DEX volumes, and stablecoin supply. This event further validates Solana as the venue for high-throughput onchain activity, with Solana DEXs and DeFi applications as primary beneficiaries, while also signaling to further experimentation, utilization, and adoption of memecoins as legitimate financial instruments for speculation, crowdfunding, or capital formation. President Trump’s continued willingness to experiment in crypto reaffirms a highly-favorable political and regulatory climate for the industry.

article-image

Donald Trump has slightly backed off from the ambitious tariff goals he touted on the campaign trail

article-image

Some have called it “a relief” that the task force will be led by the crypto-friendly Hester Peirce

article-image

By leveraging L1 validators for proofing and execution, native rollups remove the need for centralized sequencers and complex governance

article-image

The new task force shows that crypto’s officially entering a new era

article-image

After seven long years, ICOs could be back on the menu

article-image

The Solana network housed around $6.1 billion stablecoins on Friday, according to Blockworks Research data