A user is attempting to swap 10 USDC for ETH on the Ethereum mainnet using Rabby Wallet. The quoted price shows 0.005 ETH in return, valid for approximately 10 seconds. Before the transaction confirms, the quote expires. When the user tries again, the price has shifted—now showing 0.0048 ETH. Over the course of a dozen swap attempts, slippage accumulates, and the actual amount received trails the initial quote by 3–5%. What caused this deterioration, and why does Rabby Wallet warn about it before the user even signs the transaction?
The answer lies in Maximal Extractable Value (MEV), a phenomenon embedded into how blockchain transactions are ordered and executed. MEV attacks—particularly frontrunning—allow validators, sequencers, and specialized searchers to extract value from pending swaps by placing their own transactions ahead of the user’s, profiting from the price movement they cause. Rabby Wallet’s transaction simulation and risk alerts exist specifically to identify these dangers before a transaction is signed, giving users the information they need to avoid losses that would otherwise occur silently. Understanding the mechanics of MEV and how Rabby Wallet defends against it reveals why quote expiration is not a design flaw but a reflection of genuine economic risk on public blockchains.

Maximal Extractable Value: The hidden cost of every swap
Every transaction submitted to an Ethereum-compatible blockchain or other EVM chain enters a public mempool before it is included in a block. Validators and sequencers see all pending transactions, including their amounts, destinations, and computational effects. A swap transaction is particularly visible: it signals that a user is willing to exchange asset A for asset B at some quoted price, and it reserves a user’s balance for that exchange.
A searcher or validator can observe this pending swap and respond by submitting their own transaction ahead of it, or between it and another transaction, to manipulate the price or extract the difference. This is MEV—Maximal Extractable Value. When a frontrunning attack occurs, the adversary buys the same asset the user wants to buy, pushing the price higher, then lets the user’s transaction execute at the worse price, and finally sells the asset they bought, pocketing the profit. The user receives fewer tokens than the quote promised. The difference is MEV extraction, and it can range from a fraction of a percent to catastrophic losses on large or highly volatile swaps.
Quote expiration is a direct response to this risk. A liquidity source, exchange protocol, or DEX quotes a price for a specific moment, then cancels or updates the quote after a short window—typically 10 to 60 seconds depending on network conditions and volatility. The purpose is to limit the adversary’s window of opportunity. If a quote is valid for hours, a searcher has unlimited time to observe the transaction, gather competing transactions in the mempool, and craft an optimal extraction strategy. If a quote expires in 10 seconds, the cost and complexity of a coordinated attack rises. The user benefits because the time pressure forces faster execution, and faster execution means less time for sandwich attacks to take shape.
This does not mean quote expiration eliminates MEV. On Ethereum mainnet during congested periods, even a 10-second window can accommodate sophisticated attacks. However, it shifts the economic balance: smaller MEV extractions become unprofitable relative to the gas cost of the attacking transaction, and larger extractions require more careful coordination. The expiration itself is therefore a feature, not an obstacle.
How Rabby’s transaction simulation detects MEV before you sign
Rabby Wallet distinguishes itself by simulating transactions before the user signs them. This is fundamentally different from other wallets that simply display a quote and ask for confirmation. Simulation means that rabby wallet runs the proposed transaction against the current blockchain state—including current liquidity, prices, and contract behaviors—and returns the actual expected output rather than relying on a quoted promise. If the quote has become stale, or if current MEV conditions would cause significant slippage, the simulation exposes that gap immediately, before the user’s signature is committed.
A Rabby swap simulation works as follows: the wallet takes the user’s input (10 USDC to swap for ETH), identifies the current price on the selected liquidity source (Uniswap, 1inch, or another aggregator), and executes the transaction logic in a read-only environment. If a frontrunning attack is already in the mempool and will be executed ahead of the user’s transaction, the simulation attempts to model its effect on price. If slippage settings would be violated, the simulation reports this before broadcasting. If the liquidity has dried up or the pool is experiencing unusual price movement, the warning flags it.
The risk alerts that follow are specific to the threat model. MEV risks are labeled separately from liquidity warnings, contract risks, and approval warnings. A user can therefore distinguish between “this swap will likely result in 2% slippage due to current volatility” and “this swap appears to be a target for a sandwich attack based on mempool conditions.” The latter requires a different response than the former: perhaps waiting for a quieter block, using a private relay service, or adjusting the order size.
The technical basis for this simulation relies on EVM chain architecture and the ability to call contract read functions against the latest chain state without modifying it. Rabby Wallet performs these simulations locally on the user’s device or through its own nodes, rather than submitting simulated transactions to public RPC endpoints where third parties could observe and front-run the simulation itself.
Slippage tolerance, quote expiration, and why they interact
Slippage tolerance is the percentage difference a user will accept between the quoted output and the actual output. If a user sets slippage tolerance to 0.5%, and the quote promises 0.005 ETH, the transaction will execute only if the final received amount is at least 0.00498 ETH. If slippage exceeds that threshold, the transaction reverts, and no swap occurs.
Slippage tolerance and quote expiration are connected. A higher slippage tolerance means the user accepts more variation, which makes the transaction less likely to revert but more likely to deliver an unfavorable price. A lower slippage tolerance provides better protection against MEV but increases the chance that the transaction reverts if execution is delayed or if another transaction moves the price first. The interaction between these two parameters determines whether a user’s transaction executes at a favorable price, executes at a poor price, or reverts and requires resubmission.
Quote expiration forces users to decide: accept a higher slippage tolerance to reduce revert risk, or accept a lower tolerance and risk a revert when execution is delayed. Neither choice is painless. This is why understanding MEV and mempool dynamics is important for making an informed selection. On Ethereum mainnet, a slippage tolerance of 0.5% is often insufficient during periods of high activity, but a tolerance of 3% or higher exposes the user to significant MEV extraction. A tolerance of 1–1.5% often represents a practical middle ground, but this depends entirely on the network, the token pair being swapped, and current conditions.
Rabby Wallet’s simulation helps users navigate this trade-off by showing the likely outcome before commitment. Rather than blindly accepting a quoted price and hoping the transaction executes in time, a user sees the simulation result and can decide whether the predicted slippage is acceptable. This is particularly valuable on Layer 2 networks such as Arbitrum or Optimism, where block times are faster but MEV mechanics differ from Ethereum mainnet, and where slippage requirements may be different.
Frontrunning, sandwich attacks, and why private relays matter
A sandwich attack combines frontrunning and backrunning in one sequence. A searcher observes a user’s pending swap in the mempool, submits their own transaction ahead of it (frontrunning), and then submits another transaction after it (backrunning) to capture the profit. The user’s transaction is “sandwiched” between two attacker transactions, and the attacker profits from the price movement created by all three transactions combined.
Sandwich attacks are profitable because they are deterministic: the attacker knows the user’s transaction will move the price in a predictable direction, can position two transactions to exploit that movement, and can calculate profit in advance. The user bears the full cost: reduced output on the swap plus the attacker’s profit.
Private transaction relays such as MEV-Protect or Flashbots Protect reduce this risk by submitting transactions directly to block builders rather than broadcasting them to the public mempool. If the transaction is not visible in the mempool, sandwich attackers cannot observe it and therefore cannot frontrun it. However, private relays come with their own trade-offs: the private relay service itself becomes a trust point, block builders may have their own MEV extraction strategies, and private relay services are not uniformly available across all EVM chains. An Ethereum mainnet transaction relayed through Flashbots has different privacy guarantees than the same transaction on Polygon or Arbitrum.
Rabby Wallet’s transaction simulation can still provide value in private relay scenarios. Even if a private relay service prevents sandwich attacks, slippage, liquidity constraints, and protocol risks remain. The simulation identifies these risks before the user signs, independent of whether the transaction will be broadcast publicly or through a private relay. In this way, Rabby’s protection operates at multiple layers: simulation prevents signing transactions with unacceptable risks, and private relay options (where available) add an additional layer against MEV extraction.
Gas Accounts, stablecoin swaps, and MEV in fee management
Rabby Wallet includes a Gas Account feature that allows users to pay transaction fees from USDC or USDT balances instead of holding ETH or the native gas token. This convenience feature introduces its own MEV surface: the wallet must swap stablecoin for the gas token, and this swap itself is subject to slippage and MEV extraction. To address this, Rabby offers free swaps between stablecoin pairs (USDC to USDT and vice versa) and charges only a 0.25% fee on other swaps.
The economic logic is straightforward: stablecoin-to-stablecoin swaps have minimal price volatility, so MEV extraction is limited. These swaps are incentivized to be free to encourage use of the Gas Account feature. For token-to-stablecoin swaps that feed the Gas Account, the 0.25% fee is positioned as cheaper than average market rates while still compensating liquidity providers for the execution cost and MEV risk.
This fee structure also illustrates an important point: MEV is not unique to user-initiated swaps. Infrastructure features such as Gas Accounts must also account for MEV when they involve on-chain execution. By subsidizing stablecoin-to-stablecoin swaps and charging a flat fee on variable-price swaps, Rabby Wallet attempts to align the incentives of the user with the realities of blockchain MEV mechanics.
Approvals, token permissions, and the risk before the swap
Before any swap can occur, the user must approve the swapping contract to spend their tokens. Approval transactions themselves are susceptible to attack and to user error. If a user approves an unlimited balance to a malicious contract, the contract can drain the user’s holdings at any time. Even approval to legitimate contracts can be risky if the contract is later compromised or if the user does not understand the scope of the permission granted.
Rabby Wallet includes an approvals manager and token approval decoder that allow users to review what they are approving before signing. The decoder displays the contract address, the token being approved, the amount of approval (unlimited or specific), and the contract’s actual function. This is not MEV protection in the traditional sense, but it is MEV prevention: blocking a user from signing an approval to a malicious contract prevents all future MEV extraction by that contract against the user’s funds.
The approvals manager also allows users to revoke previous approvals to contracts they no longer trust. This is valuable for reducing surface area on older wallets that accumulated approvals to deprecated contracts or services. On EVM chains, old approvals do not expire automatically; they remain valid indefinitely until explicitly revoked. A user who swapped through a service years ago may still have an active approval that could be exploited if that service is compromised or if contract code is upgraded.
Hardware wallet integration and cross-chain security
Rabby Wallet supports hardware wallets including Ledger, Trezor, Keystone, OneKey, GridPlus, and BitBox02. Hardware wallet support is important for MEV-protected swaps because the user’s signing key remains isolated from the internet-connected device running the wallet software. Even if the computer or phone is compromised, an attacker cannot sign transactions without access to the hardware device itself.
However, hardware wallet integration does not eliminate MEV risk; it only reduces one component of it. The transaction simulation still occurs on the internet-connected device, which could theoretically display a deceptive simulation or prompt the user to sign a transaction that differs from what was simulated. This is why hardware wallet display verification is important: users should cross-reference the address and amount shown on the hardware device’s screen with what Rabby Wallet displays before confirming the signature. Ledger devices display contract interaction details; Trezor devices show the transaction destination and amount. These displays are the final checkpoint before commitment.
Support across 90+ EVM chains (Ethereum mainnet, Polygon, Arbitrum, Optimism, Avalanche, Binance Smart Chain, and many others) means that hardware wallet users can execute swaps on any compatible chain without exporting private keys or using separate applications. However, each EVM chain has different MEV conditions, validator/sequencer structures, and transaction ordering mechanisms. Ethereum Foundation documentation and individual chain specifications detail how these differences affect quote validity and slippage expectations.
Open source verification and scam detection
Rabby Wallet is open source, meaning anyone can review the code on GitHub to verify that transaction simulations are genuine, that no private keys are exfiltrated, and that approvals are displayed accurately. Open source does not guarantee security—bugs and vulnerabilities can exist in published code—but it enables security researchers, auditors, and users to conduct independent verification. Rabby Wallet has undergone professional security audits, and the results are publicly available.
The transparency also serves a counter to a significant threat: fake Rabby Wallet extensions and imitation websites are common attack vectors. A legitimate Rabby Wallet extension can be verified by checking the publisher identity in the browser extension store and by confirming the extension’s source repository. A fake extension may contain malicious code that simulates legitimate transactions while actually broadcasting different transactions, or that captures recovery phrases and private keys.
Users should verify that the extension is downloaded from the official browser store (Chrome Web Store, Firefox Add-ons, Edge Add-ons, Brave Add-ons, or Arc), that the publisher is listed as the official Rabby team, and that the website they visit for support is the official Rabby domain (rabby.io) and not a typosquatting variant. The prevalence of counterfeits underscores why open source code and audited security matter: they allow users to verify legitimacy and to catch malicious modifications that a casual review of a scam site would not reveal.
Future risks: MEV evolution and Rabby’s role in protecting against it
MEV extraction techniques continue to evolve. Encrypted mempools and encrypted transactions may limit frontrunning visibility, but they also create new centralization risks if only a few entities can decrypt transactions. Optimistic rollups and other Layer 2 solutions have sequencers that control transaction ordering, which can be either more or less favorable than distributed consensus depending on the sequencer’s incentives. Intent-based architectures, where users express their desired outcome rather than a specific transaction sequence, may eventually reduce MEV exposure by allowing multiple execution paths.
Throughout this evolution, Rabby Wallet’s approach—simulating transactions, displaying risks, supporting hardware wallets, and decoding contract interactions—will remain relevant. The specific MEV risks may change, but the requirement to verify transaction behavior before signing is constant. As EVM chains proliferate and interoperability protocols mature, the wallet’s support for 90+ chains and open source architecture position it to adapt to new conditions without requiring users to switch to incompatible alternatives.
The original scenario—a user watching their swap quote expire in 10 seconds—is therefore not a flaw to be eliminated. It is a feature of transparent public blockchains where MEV is present, and where quote expiration serves as a practical defense. Rabby Wallet’s simulation and risk alerts transform this constraint into actionable information, allowing users to make informed decisions about slippage tolerance, private relay usage, and execution timing rather than blindly submitting transactions and hoping for the best.
Frequently asked questions
Why does my swap quote expire so quickly on Rabby Wallet?
Quote expiration is a defense against MEV attacks and sandwich attacks. A 10-second window limits the time a frontrunner has to observe your pending transaction, execute their own transaction ahead of it, and profit from the price movement. Longer validity windows expose you to greater MEV extraction risk. Quote expiration is not specific to Rabby Wallet; it is a universal practice across decentralized exchanges to balance execution certainty with MEV protection.
How does Rabby Wallet’s transaction simulation prevent slippage?
Rabby’s simulation runs your transaction against the current blockchain state before you sign it, calculating the actual expected output based on current prices and liquidity. It then compares this outcome to your slippage tolerance and warns you if the actual output would violate your settings. This allows you to adjust slippage tolerance or cancel the swap before committing your signature, rather than discovering unfavorable execution after the transaction is already broadcast.
Is Rabby Wallet safe to use for high-value swaps?
Rabby Wallet is open source, has undergone security audits, and supports hardware wallets for key storage. These features reduce certain risks. However, MEV extraction can still occur on any public blockchain, regardless of wallet choice. For high-value swaps, consider using a hardware wallet with Rabby, setting conservative slippage tolerances, and optionally using a private transaction relay if available on your network. Always verify the final transaction details on your hardware wallet’s display before confirming.