mev

Protect Ethereum and Solana DeFi trades from sandwich attacks and front-running.

71|22|Updated Apr 6, 2020
One-click install
npx skills add https://github.com/nirholas/agenti --skill mev-nirholas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mev
Source: https://github.com/nirholas/agenti/tree/main/packages/protocols/x402-cloddsbot/src/skills/bundled/mev
Command: npx skills add https://github.com/nirholas/agenti --skill mev-nirholas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Protect trades from MEV, including sandwich attacks and front-running, by enabling configurable protection strategies.

Core Features & Use Cases

  • Private mempool protection with configurable levels (none | basic | aggressive)
  • Bundle providers: Flashbots Protect, MEV Blocker, and Jito bundles for Solana
  • Status checks, configuration, and risk assessment via a CLI-like interface

Quick Start

Select a protection level and provider to enable MEV protection for your trades.

Frequently Asked Questions about mev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I protect my DeFi trades from MEV sandwich attacks?

To protect DeFi trades from MEV sandwich attacks, route transactions through private mempools using providers like Flashbots Protect or MEV Blocker. This hides pending transactions from public view, preventing malicious front-running bots from manipulating your trade execution.

Can I configure MEV protection levels for Ethereum on-chain transactions?

Yes, MEV protection levels are configurable for Ethereum on-chain transactions. You can select between none, basic, or aggressive protection modes using CLI-like commands to adjust the security posture based on your specific DeFi trading risk profile.

Does MEV protection work with Solana bundles?

MEV protection works with Solana bundles by utilizing Jito bundles. This integration applies the same front-running and sandwich attack prevention mechanisms to Solana DeFi trades as are available on Ethereum through Flashbots Protect.

What is the difference between basic and aggressive MEV protection?

Basic MEV protection offers standard private mempool routing to mitigate common front-running, while aggressive protection applies stricter risk checks and slippage calculations. Aggressive mode provides enhanced defense against complex sandwich attacks for high-value DeFi trades.

How do I calculate slippage and check risks before enabling MEV protection?

You can calculate slippage and check risks before enabling MEV protection by using the built-in CLI-like interface. The risk check and slippage calculation commands assess trade parameters against your configured protection level to prevent excessive value extraction.

Why does my DeFi transaction need a private mempool?

Your DeFi transaction needs a private mempool to prevent MEV extraction. Without private routing through providers like MEV Blocker, pending transactions are visible to bots on the public mempool, exposing them to profitable front-running and sandwich attacks.