Contract 5fda20581465bba4eee243a152b1846e68edfc04353f04903bea5001f118cfdd

← Back to Index 📥 Download WASM

Meta

rssdkver 27.0.3#f8f32f0d0771f252377a21753a95ae0bde941ce6
rsver 1.91.1

Instances

  • CDNVK66UN7B3FJBS6ZVPTJ57EQBHCNJPZYLTH5YUD6YZM564F4XA5DSS

Interface

Executes a two-venue round trip and returns the proceeds to the immutable owner.

profit_asset is 0 for USDC and 1 for BLND. Venues are 0 for Comet, 1 for Aquarius, and 2 for Soroswap. The call rolls back unless the measured output is strictly greater than amount + minimum_profit.

fn execute(
    env: soroban_sdk::Env,
    profit_asset: u32,
    first_venue: u32,
    second_venue: u32,
    amount: i128,
    minimum_profit: i128,
) -> ArbitrageExecution
fn get_config(env: soroban_sdk::Env) -> ArbitrageConfig
fn __constructor(env: soroban_sdk::Env, config: ArbitrageConfig)

Imports

WebAssembly Text (WAT) ▶