Contract a564bebee937922e4ddd25c3e18460c84b6a61eb378dae0f4227602ece684f42

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.94.1

Instances

  • CC6YLLY5K4ZS27O2ZWZ2NP2HENSIHGG2HZOCUOX2TYINFESBXNER5JKN

Interface

Blend V2 flash-loan callback. Blend has transferred amount of token (USDC) to this contract. Run both swap legs, transfer total USDC back to caller so Blend's subsequent Repay can pull it, clear params.

fn exec_op(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    token: soroban_sdk::Address,
    amount: i128,
    _fee: i128,
)

Stash params + pre-fetch Sushi oracle hints for user. Called by the Starter before Blend.flash_loan.

No require_auth: anyone could stash params for anyone, but consumption in exec_op requires Blend to invoke us as from=user, which requires user's auth on the outer flash_loan. So unauthorized stashing is inert.

fn set_arb_params(env: soroban_sdk::Env, user: soroban_sdk::Address, params: ArbParams)

Imports

WebAssembly Text (WAT) ▶