Contract d7d2c42085c211596f7767292c46204daa8c6cbee4111383fba5959e921c6a98

← Back to Index 📥 Download WASM

Meta

rssdkver 25.1.1#94c2a3b3a5ded6b9cf9cef0c207bf8804f3eb294
rsver 1.93.1

Instances

  • CA4I5TPQAEF6C62B4UI7IDNDAPT5RUNSYGB6WSYNIQXHLG4JOFX2NSMH

Interface

Execute a flash-loan arbitrage (permissionless).

All struct params (flash loan, requests, ops, sub-auths) are passed as opaque Val to avoid embedding their type definitions in this WASM — they are forwarded as-is to the target contracts which own the types.

Parameters

  • a — Parallax contract address
  • b — ops (Vec<Op>, opaque passthrough → parallax.a)
  • c — Blend pool address
  • d — flash loan params (FlashLoan struct, opaque passthrough → pool.flash_loan)
  • e — Blend requests (Vec<Request>, opaque passthrough → pool.flash_loan)
  • f — asset address (the token being traded, needed for approval + sweep)
  • g — minimum profit (remaining balance after flash loan must be ≥ this)
  • h — sub-auth entries (opaque passthrough → parallax.a)

Returns profit sent to payout address. Panics if final balance is less than g.

fn a(
    env: soroban_sdk::Env,
    a: soroban_sdk::Address,
    b: soroban_sdk::Val,
    c: soroban_sdk::Address,
    d: soroban_sdk::Val,
    e: soroban_sdk::Val,
    f: soroban_sdk::Address,
    g: i128,
    h: soroban_sdk::Val,
) -> i128

Set the payout address at deploy time.

fn __constructor(env: soroban_sdk::Env, a: soroban_sdk::Address)

Imports

WebAssembly Text (WAT) ▶