Description
Detect arbitrage opportunities while accounting for MEV (sandwich attacks, frontrunning) and only signal opportunities with net positive expected profit after MEV costs.
Acceptance Criteria
- Profit calculation includes estimated MEV cost
- MEV cost estimated from recent block history
- Only opportunities with profit above MEV cost plus gas are signaled
- Configurable MEV buffer percentage
- MEV events for monitoring market conditions
Files to Modify
- src/contracts/arbitrage.rs -- add MEV-aware detection
- src/types/stablecoin.rs -- add MEVCost type
- examples/ -- MEV-aware arbitrage example
Description
Detect arbitrage opportunities while accounting for MEV (sandwich attacks, frontrunning) and only signal opportunities with net positive expected profit after MEV costs.
Acceptance Criteria
Files to Modify