Skip to content

Add arbitrage profit simulation with gas estimation #196

Description

@Kevin737866

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions