Front-running, flash bots and keeping things fair in the crypto market

Published at: Feb. 26, 2022

Decentralized finance (DeFi) has the opportunity to democratize access to financial markets that have typically only been open to the rich and powerful. But, DeFi will only survive and continue to grow if we take steps to ensure things are safe, private and fair for both retail and institutional investors. When faced with predatory market behaviors such as miner extractable value (MEV) and front-running attacks it opens up old wounds to a “Flash Boys” era of traditional finance. 

DeFi can and should do better by not allowing the failures of the past to come creeping back into the future. Fortunately, by implementing cryptographic mechanisms that integrate transactional privacy into public blockchains, information can be proven with things such as an order book without being revealed. This seemingly magical mathematical tactic not only shields transactions from the aforementioned behavior but also allows for auditability, all while still preserving the privacy of individual or institutional accounts. This approach will foster a more accessible DeFi industry and provide a more equitable and liquid market for all.

The boys are back in town

The phrase Flash Boys entered the lexicon after Michael Lewis wrote a very influential book detailing the phenomenon. When we transitioned from the open-outcry trading floor of old Wall Street into a fully electronic trading world, traders immediately started working out new ways to game the system. In short, the earliest tech-savvy brokers used the ultra-fast processing power of modern computer systems to monitor and facilitate high-frequency trades undercutting, or front-running, legitimate incoming trades posted by slower systems. The crypto DeFi equivalent of the Flash Boys is Flash Bots.

Related: Bitcoin’s last security challenge: Simplicity

In crypto, these specialized arbitrage bots will usurp human traders on exchanges by algorithmically predicting their moves and squeezing in their trades before a person can modify their position. These bots also often get priority in the upcoming block validation by paying higher fees that are calculated against the return on the trade. These bots will know in a fraction of a second what trades to make to optimize their profit.

Another phenomenon that enables scenarios like front-running is miner extractable value. MEV is just a fancy new way to describe how miners can extract value by deliberately prioritizing or ordering transactions to their benefit. When the miners are working against the best interests of the blockchain, their ability to use MEV undermines one of the key value propositions of decentralization and that is censorship resistance.

This malicious behavior incentivizes bad actors to come up with and implement numerous predatory actions that can undermine the security of an entire network. Further, most consensus mechanisms fail to punish MEV attacks which, in turn, gives miners the freedom to exploit them.

Related: Is the rise of derivatives trading a risk to retail crypto investors?

On a blockchain native decentralized exchange (DEX), when you combine the presence of Flash Bots together with MEV, the threat and resulting costs for the average human user compounds. If there is ever going to be mainstream adoption of crypto and DeFi, then the market environment needs to become less hostile to retail consumers. Working on cryptographic methods to protect against these types of malicious behaviors is something the industry needs to prioritize.

Rage against the machine

Fortunately, Flash Bot front-running and MEV attacks can be minimized on blockchains and their native DEXs with privacy-centric designs that utilize zero-knowledge proofs (ZKP) to mask transactions without compromising network security. ZKP technology is quickly becoming scalable enough to support such use cases as blind bidding, where the trade transaction is submitted, proven and verified on a DEX without revealing details such as trade size and time. This mechanism prevents a Flash Bot from being able to look up the trade on an order book and instantly front-run it with a better bid or ask.

A similar mechanism can be implemented to prevent MEV as well, but instead, the transaction is submitted, proven and verified on a blockchain without having to reveal its details to miners. This is the magic of ZKP that can be used to allow protocol rules to be implemented that see what (and how) transactions take place through cryptographic proofs. All of this is without revealing more information than is needed to verify the transaction under any existing protocol rules that said transactions must meet.

No quarter

The ability to share (and prove) information without showing it through the use of ZKP can unlock more mainstream adoption by policing crypto markets from bad actors and safely paving the way for more users. This approach will help the DeFi market grow to unprecedented levels through more safety, security and fairness, without compromising the decentralized nature of the industry.

This article does not contain investment advice or recommendations. Every investment and trading move involves risk, and readers should conduct their own research when making a decision.

The views, thoughts and opinions expressed here are the author’s alone and do not necessarily reflect or represent the views and opinions of Cointelegraph.

Warren Paul Anderson is vice president of product at Discreet Labs, which is developing Findora, a public blockchain with programmable privacy. Previously, Warren led product at Ripple for four and a half years, working on the XRP Ledger, Interledger and PayString protocols, the RippleX platform and RippleNet's On-Demand Liquidity enterprise product. Prior to Ripple, in 2014 Warren co-founded Hedgy, one of the first DeFi platforms for derivatives using programmable escrowed smart contracts on the Bitcoin blockchain. Warren has two bachelor's degrees from Northwestern University and did graduate studies at Harvard University.
Tags
Dex
Related Posts
Industry players respond to Vitalik Buterin's thoughts on cross-chain ecosystems
Last week, Vitalik Buterin, Ethereum (ETH)'s co-founder, voiced his disapproval regarding the emergence of cross-chain bridges, citing security vulnerabilities due to their interdependency. In the days that followed however, developers working on cross-chain technologies largely dismissed his skepticism. In a statement to Cointelegraph, Kadan Stadelmann, chief technology officer of atomic swap blockchain Komodo, responded to Vitalik's critique: "What we ultimately need is true decentralization. For example, instead of relying on one or two trusted bridges that have a single point of failure, it would be better to work towards a future where we have numerous bridges that are secure, trustless, …
Adoption / Jan. 13, 2022
Decentralized exchanges aren’t ready for derivatives
If the words “derivatives trading” conjures up images of men in suits with disheveled white sleeves rolled up to the elbows and exacerbated expressions on their faces — like something out of The Big Short — then the word decentralized exchanges (DEXs) must conjure up, well, nothing. There are no offices, no floor traders waving papers and certainly no men in suits. DEXs are managed automatically or semi-automatically with the involvement of platform participants in the process of making mission-critical decisions. DEXs are a bulb of a system that is sprouting groundbreaking opportunities for many, but they are not yet …
Technology / Nov. 20, 2021
REN price gains 65% after Catalog launch brings a cross-chain DEX to its blockchain
Decentralized finance projects like Ren pumped in 2021, only to finish the year right back when they started as high fees on Ethereum (ETH) led to decreased activity for many protocols and DeFi took a backseat to more popular sectors like nonfungible tokens (NFTs). Now, it appears as though that downtrend is in the process of reversing course after recent global events highlighted the benefits of DeFi and holding assets outside the traditional financial system. This week REN price climbed 69% from a low of $0.247 on Feb. 24 to a daily high of $0.418 on March 3. Three reasons …
Blockchain / March 4, 2022
DAOs, DEXs and whales? How Web3 organizations became the new crypto beasts
Web3 has brought a lot of excitement into the industry, as evidenced by the nearly $50 billion market capitalization Web3 tokens have grown in recent years. The very ethos of Web3 is one of its most attractive traits. It is an ecosystem free from barriers or intermediaries, welcoming to anyone from anywhere and open anytime. However, there is one massive problem: There is no infrastructure within decentralized finance (DeFi) robust enough to execute these large orders in an entirely decentralized manner, as the use of centralized exchanges contradicts the decentralized nature of the decentralized autonomous organization, or DAO. Let’s unpack …
Blockchain / May 15, 2022
Crypto hacks are set to hit all-time highs in 2022, analyst explains
Reducing the amount of hacking by improving cybersecurity should be considered a top priority for the crypto industry, said Kim Grauer, director of research of blockchain intelligence firm Chainalysis. As pointed out by the firm, this year could outpace 2021 in terms of crypto stolen through hacks. The vast majority of these exploits have been targeting the field of decentralized finance. “This can't go on in the industry because people are going to lose faith in investing in DeFi platforms”, Grauer said in an interview with Cointelegraph. Unlike centralized exchanges, which have improved their resiliency to crypto hacks, decentralized protocols …
Blockchain / Oct. 19, 2022