Cointime

Download App
iOS & Android

1inch Unveils RabbitHole Feature to Protect MetaMask Users From "Sandwich Attacks"

Validated Project

The 1inch RabbitHole feature will protect MetaMask users from sandwich attacks, one of the most common ways of extracting MEV in DeFi.

The 1inch Network is thrilled to introduce the 1inch RabbitHole, a brand new feature that aims to protect MetaMask users swapping on 1inch from sandwich attacks — the most common type of front-running.

Sandwich attacks explained

When making swaps on decentralized exchanges, users can potentially become victims of a so-called “sandwich attack,” a way of getting maximal extractable value (MEV). Although technically not illegal, sandwich attacks are still a type of manipulating crypto prices by taking advantage of decentralized exchanges’ underlying tech. And a sandwich attack could lead to significant losses for a user.

To run sandwich attacks, specifically created bots are used that scan decentralized exchanges’ memory pools (mempools) where transactions are waiting to be processed. If a bot detects a large pending swap trade, it initiates two transactions: one before the trade and the other one after the trade, basically “sandwiching” the victim’s trade. To get the first transaction directly before the victim’s trade, extra gas fees are paid.

Say, a user wants to buy 1,000 X tokens for 20 Y tokens with a 1% slippage tolerance — meaning that the minimum amount of X tokens they agree to receive is 1,000–1% = 990.

A sandwich bot detects the trade and places a buy transaction for Y directly before the victim’s trade and a sell transaction for Y directly after the victim’s trade. Subsequently, three transactions are executed.

  • Transaction 1: the bot executes the buy transaction, and the high purchase of asset Y pumps its price.
  • Transaction 2: the victim buys Y at a higher price than originally expected, and the large trade pumps Y’s price even higher.
  • Transaction 3: the bot sells Y, pocketing the price difference.

As a result, the user loses their 1% entirely.

The very first sandwich attack is believed to be carried out on Bancor on February 27, 2018:

Since then, users have lost substantial funds due to sandwich attacks, which hit roughly 4% of all swap transactions. In 2022 so far, estimated losses have amounted to the equivalent of at least $800 mln.

The 1inch RabbitHole: a shield from sandwich attacks

The 1inch RabitHole is a feature that solves the problem of sandwich attacks by sending swap transactions on 1inch directly to validators and avoiding putting them to the mempool where sandwich bots can attack them.

To achieve that, the RabbitHole aggregates providers, such as Flashbots, BloXroute, Eden and Manifold, that enable sending swap transactions directly to validators.

The RabbitHole will specifically benefit MetaMask users, as, while some crypto wallets (including the 1inch Wallet, Ledger and Trezor) are capable of creating and signing a transaction, but not broadcasting it immediately, MetaMask is not.

The RabbitHole is designed as a proxy, connecting 1inch users’ MetaMask wallets and Ethereum validators. Its unique algorithm will check swap transactions on 1inch for the threat of a sandwich attack, and, if such a threat is detected, the transaction will be sent directly to validators, using one of the aggregated providers.

For a testing period, the RabbitHole will be free to use. Upon receiving feedback from the community, a decision will be made regarding payment options for the RabbitHole. One possible option could be staking a certain amount of 1INCH tokens.

A step-by-step guide on using the 1inch RabbitHole is available in the Help Center.

Comments

All Comments

Recommended for you

  • BTC Surpasses $79,000

    Market data shows that BTC has surpassed $79,000, currently priced at $79,066.69, with a 24-hour decline of 1.91%. The market is experiencing significant volatility, so please ensure proper risk management.

  • BTC Surpasses $79,000

    Market data shows that BTC has surpassed $79,000, currently priced at $79,066.69, with a 24-hour decline of 1.91%. The market is highly volatile, so please ensure proper risk management.

  • Jack Ma Increases Stake, Buying Over HKD 600 Million in Alibaba's Hong Kong Stocks

    According to sources speaking to the Science and Technology Innovation Board Daily on the 25th, as Alibaba initiates a placement financing, Alibaba founder Jack Ma has been continuously increasing his stake in Alibaba's Hong Kong stocks, with the total amount exceeding HKD 600 million, expressing strong confidence in Alibaba's AI prospects.

  • Jack Ma Increases Stake, Buys Over HKD 600 Million in Alibaba Shares

    According to sources speaking to the Science and Technology Innovation Board Daily on the 25th, as Alibaba initiates a placement financing, Alibaba founder Jack Ma has been increasing his stake in Alibaba's Hong Kong shares for several consecutive days, with the total amount exceeding HKD 600 million, expressing strong confidence in Alibaba's AI prospects.

  • BTC Falls Below $79,000

    Market data shows that BTC has fallen below $79,000, currently priced at $78,993.01, with a 24-hour increase of 1.85%. The market is experiencing significant volatility, so please ensure proper risk management.

  • BTC Falls Below $79,000

    Market data shows that BTC has fallen below $79,000, currently priced at $78,993.01, with a 24-hour increase of 1.85%. The market is experiencing significant fluctuations, so please ensure proper risk management.

  • BTC Falls Below $80,000

    Market data shows that BTC has fallen below $80,000, currently priced at $79,983.76, with a 24-hour increase of 3.33%. The market is highly volatile, so please ensure proper risk management.

  • BTC Drops Below $80,000

    Market data shows that BTC has dropped below $80,000, currently priced at $79,983.76, with a 24-hour increase of 3.33%. The market is highly volatile, so please ensure proper risk management.

  • Hyperliquid Policy Center Urges US SEC and CFTC to Adopt Unified Perpetual Contract Framework

    On August 25, the Hyperliquid Policy Center (HPC) submitted comments to the US SEC and CFTC, stating that the two agencies have been striving to find answers regarding the classification of perpetual contracts over the past year. HPC believes that perpetual contracts for stocks, which possess traditional features of futures contracts, can be classified as securities futures. HPC urges the US SEC and CFTC to establish a unified classification system for perpetual contracts, based on the characteristics of each contract and its trading methods, grouping similar products together regardless of whether they reference Bitcoin, crude oil, or individual securities. HPC calls for the US SEC and CFTC to take the following four actions: 1. Confirm that the definition of securities futures includes the established features of futures contracts, allowing cash-settled stock perpetual contracts with these features to be listed as securities futures. 2. Retain the flexibility that trading venues currently have in making product listing decisions. 3. Maintain consistency in classification between the two agencies so that perpetual contracts, regardless of the underlying asset, receive the same threshold classification. 4. Modernize the securities futures framework to revitalize the category and adapt to new product structures.

  • Hyperliquid Policy Center Urges Unified Perpetual Contract Framework from US SEC and CFTC

    On August 25, the Hyperliquid Policy Center (HPC) submitted comments to the US SEC and CFTC, stating that both agencies have been working over the past year to find answers regarding the classification of perpetual contracts. HPC believes that perpetual contracts for stocks, which possess traditional characteristics of futures contracts, can be classified as security futures. HPC urges the US SEC and CFTC to establish a unified classification system for perpetual contracts, based on the characteristics of each contract and its trading methods, grouping similar products together regardless of whether they reference Bitcoin, crude oil, or individual securities. HPC calls for the US SEC and CFTC to take the following four actions: 1. Confirm that the definition of security futures includes the established characteristics of futures contracts, allowing cash-settled stock perpetual contracts with these characteristics to be listed as security futures. 2. Retain the flexibility that trading venues currently have in product listing decisions. 3. Maintain consistency in classification between the two agencies so that perpetual contracts, regardless of the underlying asset, receive the same threshold classification. 4. Modernize the security futures framework to revitalize the category and adapt to new product structures.