Contract 60332ba12801eda65874e9afdbfdf8d114f56011fe7d1f902103cd7767c547d4

← Back to Index 📥 Download WASM

Meta

Description Contract to enable chaining of multiple swap transactions together
rssdkver 20.5.0#9e2c3022b4355b224a7a814e13ba51761eeb14bb
rsver 1.75.0

Interface

fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    factory: soroban_sdk::Address,
)
fn swap(
    env: soroban_sdk::Env,
    recipient: soroban_sdk::Address,
    operations: soroban_sdk::Vec,
    max_spread_bps: Option,
    amount: i128,
)
fn simulate_swap(
    env: soroban_sdk::Env,
    operations: soroban_sdk::Vec,
    amount: i128,
) -> SimulateSwapResponse
fn simulate_reverse_swap(
    env: soroban_sdk::Env,
    operations: soroban_sdk::Vec,
    amount: i128,
) -> SimulateReverseSwapResponse
fn update(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)

Imports

WebAssembly Text (WAT) ▶