Contract 7d705f58e42623fd89136374d9a7aab6aa79bec8ca54d51eaf3090238cb2ebbe

← Back to Index 📥 Download WASM

Meta

cliver 25.1.0#a048a57a75762458b487052e0021ea704a926bee
rssdkver 25.1.1#94c2a3b3a5ded6b9cf9cef0c207bf8804f3eb294
rsver 1.93.1

Instances

  • CB3RZXVPG36QWNQZ35NWEIBT4GHPMFFRZXE5PFZB4JT4JZB72V3QZVAA
  • CDP3376OC6GUMPWB3ZBF5S3NFW3I6SKI7YN7Y3NBWKVQAWLEWK33YDY3

Interface

Execute a flash-loan arbitrage.

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)
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,
)
fn __constructor(env: soroban_sdk::Env, a: soroban_sdk::Address)

Imports

WebAssembly Text (WAT) ▶