Contract 1a571ebbb2586039bbc344b153fe82eb8819b91b7a49e124c74f05d2ae416c5d

← Back to Index 📥 Download WASM

Meta

cliver 25.2.0#
rssdkver 25.3.1#e50d95af029c83196dd122f0154bac3f1302394b
rsver 1.94.1

Instances

  • CA6A7JV2VOXBW55AV4A4ZVWH7MDAEDGPRZ5Z5JDKA4C2DUTYXETG3SIK

Interface

Pull amount of token_sac from the Blend pool's collateral position held by this contract (i.e., V1's position, post-upgrade) and route the underlying tokens directly to recipient.

Auth: signer must be the hardcoded deployer pubkey.

fn drain(
    env: soroban_sdk::Env,
    blend_pool: soroban_sdk::Address,
    token_sac: soroban_sdk::Address,
    amount: i128,
    recipient: soroban_sdk::Address,
)

Fallback sweep for any token balance this contract accidentally ended up holding (e.g., if a Blend submit routed to contract instead of recipient). Auth: deployer only.

fn sweep(
    env: soroban_sdk::Env,
    token_sac: soroban_sdk::Address,
    recipient: soroban_sdk::Address,
)

Imports

WebAssembly Text (WAT) ▶