Contract 86c4afab2b71ff7641a2ebfe22a9817ad2aecf6feb79c47c1ce2d4919a7e3125

← Back to Index 📥 Download WASM

Meta

cliver 28.0.0#300aaf69ab100536678bdb641428b06f06b318ea
rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.98.1

Instances

  • CAWOR3R7CCTVTJE3DFLONZETA6GO7DKAOVVWWGHLXU6GCQU56WNH3JPJ

Interface

fn asset(env: soroban_sdk::Env) -> Result
fn balance(
    env: soroban_sdk::Env,
    from: soroban_sdk::Address,
) -> Result

Pull amount of USTRY from from (the vault) and credit its strategy balance. Returns the vault's remaining strategy balance.

fn deposit(
    env: soroban_sdk::Env,
    amount: i128,
    from: soroban_sdk::Address,
) -> Result

USTRY yield is issuer NAV. Nothing to claim or swap.

fn harvest(
    env: soroban_sdk::Env,
    from: soroban_sdk::Address,
    _data: Option,
) -> Result<(), StrategyError>

Send amount of USTRY from the strategy to to. Returns remaining from balance.

fn withdraw(
    env: soroban_sdk::Env,
    amount: i128,
    from: soroban_sdk::Address,
    to: soroban_sdk::Address,
) -> Result

DeFindex constructor: asset is the USTRY SAC. init_args is unused.

fn __constructor(
    env: soroban_sdk::Env,
    asset: soroban_sdk::Address,
    _init_args: soroban_sdk::Vec,
)

Imports

WebAssembly Text (WAT) ▶