Contract 8518d13075e694930480bea1446518e0c4a2d4cd3681aeff4d825b1c4b5cfc81

← Back to Index 📥 Download WASM

Meta

cliver 26.0.0#60f7458e7ecffddf2f2d91dc6d0d2db4fab03ecc
rssdk_spec_shaking 2
rssdkver 25.3.0#dcbea44513feb7734af6b6c4aced2c4a7a2715d0
rsver 1.89.0

Instances

  • CDC4WGJI6F7FGLCYLCEBDGSMGGCIT7RREO6G7IPSVCMJYRJM3W34XBMQ

Interface

Runs atomically during contract deployment — no separate initialize transaction that could be front-run.

fn __constructor(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    vault: soroban_sdk::Address,
    pool: soroban_sdk::Address,
) -> Result<(), AdapterError>

Pause or unpause adapter state-changing operations (admin or vault).

fn set_paused(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    paused: bool,
) -> Result<(), AdapterError>
fn paused(env: soroban_sdk::Env) -> bool

Supply assets from the adapter into the Blend pool (vault-only).

fn supply(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    asset: soroban_sdk::Address,
    amount: i128,
) -> Result<(), AdapterError>

Withdraw assets from the Blend pool and transfer them to the vault.

fn withdraw(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    asset: soroban_sdk::Address,
    amount: i128,
) -> Result<(), AdapterError>

Progress a withdrawal from Blend and return actual assets sent to the vault.

fn progress_withdrawal(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    asset: soroban_sdk::Address,
    amount: i128,
) -> Result

Rescue assets held by the adapter and transfer them to receiver.

fn rescue(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    asset: soroban_sdk::Address,
    amount: i128,
    receiver: soroban_sdk::Address,
) -> Result<(), AdapterError>

Query total assets for asset from the Blend pool.

fn total_assets(
    env: soroban_sdk::Env,
    asset: soroban_sdk::Address,
) -> Result
fn admin(env: soroban_sdk::Env) -> Result
fn vault(env: soroban_sdk::Env) -> Result
fn pool(env: soroban_sdk::Env) -> Result

Propose a new admin. The pending admin must accept in a separate call.

fn set_admin(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    admin: soroban_sdk::Address,
) -> Result<(), AdapterError>

Accept admin role previously proposed with set_admin.

fn accept_admin(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
) -> Result<(), AdapterError>
fn pending_admin(env: soroban_sdk::Env) -> Result

Extend instance storage TTL (admin-only).

fn extend_ttl(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
) -> Result<(), AdapterError>
fn upgrade(
    env: soroban_sdk::Env,
    new_wasm_hash: soroban_sdk::BytesN<32>,
    operator: soroban_sdk::Address,
)

Imports

WebAssembly Text (WAT) ▶