Description
Provide a pre-execution simulation that calculates exact expected profit after all fees, gas, and slippage for a given arbitrage opportunity.
Acceptance Criteria
- Simulate full arbitrage execution path
- Return expected profit in base currency
- Include all fees: pool fees, gas, protocol fees
- Include slippage estimation for large trades
- Simulation is read-only (no state changes)
Files to Modify
- src/contracts/arbitrage.rs -- add simulation function
- src/api/ -- simulation endpoint
- tests/ -- simulation tests
Description
Provide a pre-execution simulation that calculates exact expected profit after all fees, gas, and slippage for a given arbitrage opportunity.
Acceptance Criteria
Files to Modify