Contract 330f9ae7db8047a2fff32d4e92ab21179a76c365dfc90cb5446327c149064750

← Back to Index 📥 Download WASM

Meta

rssdkver 27.0.6#60926a20d1f9f0a669d5fe551636f42a1302f0c0
rsver 1.96.0

Instances

  • CAUA3I56LPLZUTWP43AF67DA3BSNSOLJ6M2CD46BGXCAEVI4IQMQ4EWX

Interface

fn armed(env: soroban_sdk::Env) -> bool

Owner: move any token held by this contract.

fn sweep(
    env: soroban_sdk::Env,
    tkn: soroban_sdk::Address,
    to: soroban_sdk::Address,
    amount: i128,
)

Flash-loan receiver (moderc3156). caller is the from of the flash loan (the owner).

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

Owner: configure the Aquarius router, the XLM/USDC pool hash and the native XLM SAC.

fn set_amm(
    env: soroban_sdk::Env,
    router: soroban_sdk::Address,
    pool_hash: soroban_sdk::BytesN<32>,
    xlm: soroban_sdk::Address,
)

Owner: store the plan (flat quads) and arm the next exec_op.

fn set_plan(env: soroban_sdk::Env, armed: bool, plan: soroban_sdk::Vec)
fn last_auction(env: soroban_sdk::Env) -> (i128, u32)
fn __constructor(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    pool_fixed: soroban_sdk::Address,
    pool_flash: soroban_sdk::Address,
    comet: soroban_sdk::Address,
    backstop: soroban_sdk::Address,
    usdc: soroban_sdk::Address,
    blnd: soroban_sdk::Address,
    lot: soroban_sdk::Vec,
)

Imports

WebAssembly Text (WAT) ▶