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