Contract 0a5992d52df7e4f17cb8f7fb005a4faf8bf1742def9c712dced82319332b3197

← Back to Index 📥 Download WASM

Meta

cliver 26.0.0#60f7458e7ecffddf2f2d91dc6d0d2db4fab03ecc
rssdk_spec_shaking 2
rssdkver 25.3.0#dcbea44513feb7734af6b6c4aced2c4a7a2715d0
rsver 1.92.0
source_repo github:Templar-Protocol/contracts

Instances

  • CBZNMBEG4PPXRFIQANHW4BRK72N4DEWGOWWM22LEN5PHXURQTWODGUEF
  • CDDMX4NTY4Z3VXPUBFMDMIEKK723NUNWLX2NN6KUNYOKYB5KRTD6NXYK

Interface

fn pool(env: soroban_sdk::Env) -> Result
fn admin(env: soroban_sdk::Env) -> Result
fn vault(env: soroban_sdk::Env) -> Result
fn paused(env: soroban_sdk::Env) -> bool

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>

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>
fn upgrade(
    env: soroban_sdk::Env,
    new_wasm_hash: soroban_sdk::BytesN<32>,
    operator: soroban_sdk::Address,
)

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>

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>

Extend instance storage TTL (admin-only).

fn extend_ttl(
    env: soroban_sdk::Env,
    caller: 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>

Accept admin role previously proposed with set_admin.

fn accept_admin(
    env: soroban_sdk::Env,
    caller: 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

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>
fn pending_admin(env: soroban_sdk::Env) -> Result

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

Imports

WebAssembly Text (WAT) ▶