Contract f285edabf39d54d54e26528d900416743bf1a12eaace540a6fcf5a10743fd603

← Back to Index 📥 Download WASM

Meta

cliver 27.1.0#8e402ea28202950b272fbabc34caad4d2f64fe87
rssdkver 27.0.5#ea54f95d3f2f49e0487b29fd1a9f469638f09aba
rsver 1.93.1

Instances

  • CBTGXQZQQ2FHDTOS5EOEHEN725SV5FJGENAGTVKDDU6N34PTAI7AO2PE

Interface

Atomically execute a multi-hop arbitrage path.

Safety: snapshots token_in balance of caller before swaps and panics (reverts the transaction) if final_balance < initial_balance + min_profit.

fn execute_arb(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    token_in: soroban_sdk::Address,
    amount_in: i128,
    min_profit: i128,
    hops: soroban_sdk::Vec,
)

Imports

WebAssembly Text (WAT) ▶