Contract 18336805466bbd05bc388610d36de73994f5b9061bb199c02418a073fcf4b281

← Back to Index 📥 Download WASM

Meta

Description Contract to enable chaining of multiple swap transactions together
rssdkver 21.6.0#f57d2454e520ae11dc9c8d55db610557a24a556e
rsver 1.78.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,
    pool_type: PoolType,
    deadline: Option,
    max_allowed_fee_bps: Option,
)
fn simulate_swap(
    env: soroban_sdk::Env,
    operations: soroban_sdk::Vec,
    amount: i128,
    pool_type: PoolType,
) -> SimulateSwapResponse
fn simulate_reverse_swap(
    env: soroban_sdk::Env,
    operations: soroban_sdk::Vec,
    amount: i128,
    pool_type: PoolType,
) -> SimulateReverseSwapResponse
fn update(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)

Imports

WebAssembly Text (WAT) ▶