Contract c3649aa20c9f6c3841f26e9cca4966cb4b9f63b39687d4361d0ab1187090f82d

← Back to Index 📥 Download WASM

Meta

cliver 26.0.0#60f7458e7ecffddf2f2d91dc6d0d2db4fab03ecc
rssdkver 27.0.5#ea54f95d3f2f49e0487b29fd1a9f469638f09aba
rsver 1.94.1

Instances

  • CDKNSX5YTE5R6CAOKI5UGDOJU5ILYEVVFHREYWKGEWOPT474UTQJ6I4N

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) ▶