Contract 2240657132c8f1997055e754bb2f8a20ad82d4eb5296ebc8db6420489629e255

← Back to Index 📥 Download WASM

Meta

rssdkver 27.0.5#ea54f95d3f2f49e0487b29fd1a9f469638f09aba
rsver 1.96.0

Instances

  • CBBUVNWLIWALGWC6U6YDMUJFTBWBIQTG2JXRVQ2ZT6C7SLS7GQIZ3HZ5

Interface

fn caps(env: soroban_sdk::Env) -> AdapterCaps

The address that administers this adapter's allowlist.

A view, added in Phase 11 alongside caller() and for the same reason (ADR-037): scripts/verify_deployment.sh has to read the owner off the chain rather than trust the deploy script's variable. The value was always stored — initialize takes it — but nothing exposed it, so the one check that would catch an adapter initialized by the wrong key was the one check that could not be made.

fn owner(env: soroban_sdk::Env) -> Result
fn pools(env: soroban_sdk::Env) -> soroban_sdk::Vec

The one contract permitted to invoke this adapter.

A view, added in Phase 11 for scripts/verify_deployment.sh. The binding is the single most error-prone fact in a deployment — a venue reachable from three contracts needs three adapter instances, and one bound to the wrong caller passes every other check and fails on the first user call. A deployment invariant that cannot be read cannot be verified.

fn caller(env: soroban_sdk::Env) -> Result

Verification

A supply produces no transferable token, so min_out is checked against the increase in the user's Blend position, read from the pool before and after.

fn execute(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    action: Action,
    token_in: soroban_sdk::Address,
    amount: i128,
    beneficiary: soroban_sdk::Address,
    min_out: i128,
    params: AdapterParams,
) -> Result

Owner-gated. Permits this adapter to interact with pool.

fn allow_pool(
    env: soroban_sdk::Env,
    pool: soroban_sdk::Address,
) -> Result<(), AdapterError>

caller is the vault or executor this adapter serves; owner administers the pool allowlist.

fn initialize(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    caller: soroban_sdk::Address,
) -> Result<(), AdapterError>

Owner-gated.

fn revoke_pool(
    env: soroban_sdk::Env,
    pool: soroban_sdk::Address,
) -> Result<(), AdapterError>
fn authorized_caller(
    env: soroban_sdk::Env,
) -> Result

Imports

WebAssembly Text (WAT) ▶