DEX aggregator 1inch to protect MetaMask users from frontrunning

Quick Take

  • Decentralized exchange aggregator 1inch is introducing a new feature designed to protect against a type of frontrunning.
  • If 1inch detects that a transaction may be attacked in this way, it will send it directly to a validator.

Decentralized exchange aggregator 1inch is introducing a feature called RabbitHole that's designed to prevent MetaMask users from getting hit by a certain form of frontrunning.

The issue at hand is sandwich attacks. This is where a trader frontruns a large buy order by buying the token first, pushing up the price. Once the buy order goes through, the token's price rises higher, at which point the trader sells at the higher price (or vice versa for the whole maneuver). It results in the victim seeing the trade executed at a worse price.

The reason this happens is because blockchain transactions are typically broadcast to the network as a whole and there is a period of time before they are included in blocks in the chain. As a result, traders who are able to get their transactions into the chain first — through a range of different methods — are able to frontrun transactions, if it's profitable enough.

THE SCOOP

Keep up with the latest news, trends, charts and views on crypto and DeFi with a new biweekly newsletter from The Block's Frank Chaparro

By signing-up you agree to our Terms of Service and Privacy Policy
By signing-up you agree to our Terms of Service and Privacy Policy

RabbitHole checks for transactions that are likely to be subject to such sandwich attacks. If it determines a transaction is likely to be attacked in this way, it uses an alternative method to get the transaction into the blockchain. It submits the transaction directly to a validator, such as Flashbots, avoiding it being broadcast publicly.

RabbitHole is designed for MetaMask users and will initially be free to use. Depending on community opinion, 1nch may monetize the feature in the future.


© 2023 The Block. All Rights Reserved. This article is provided for informational purposes only. It is not offered or intended to be used as legal, tax, investment, financial, or other advice.

About Author

Tim is the Editor-In-Chief of The Block. Prior to joining The Block, Tim was a news editor at Decrypt. He has earned a bachelor's degree in philosophy from the University of York and studied news journalism at Press Association Training. Follow him on X @Timccopeland.

Editor

To contact the editor of this story:
Mike Millard at
[email protected]