Contract aed7aac1dbc238f621cd624bc36affe37fbc48fd6ac2559d10249e167b617dfe

← Back to Index 📥 Download WASM

Meta

cliver 25.2.0#28484880988199233a7e8e87c97cb12dac323cb3
rssdkver 25.3.0#dcbea44513feb7734af6b6c4aced2c4a7a2715d0
rsver 1.94.0

Instances

  • CDZEIGSIY3ZSV3HWHOJNX4DACLUTCIE56C537MCLNCSFVZRFZLN5WLGF

Interface

fn admin(env: soroban_sdk::Env) -> soroban_sdk::Address
fn pause(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
) -> Result<(), RewardsError>
fn keeper(env: soroban_sdk::Env) -> soroban_sdk::Address
fn router(env: soroban_sdk::Env) -> soroban_sdk::Address
fn unpause(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
) -> Result<(), RewardsError>

Atomic harvest -> sweep -> swap -> compound. Returns the asset amount transferred to the vault. Returns 0 (no-op event emitted) when the strategy holds zero reward_token after harvest.

fn compound(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    strategy: soroban_sdk::Address,
    reward_token: soroban_sdk::Address,
    path: soroban_sdk::Vec,
    min_out: i128,
    deadline: u64,
) -> Result
fn is_paused(env: soroban_sdk::Env) -> bool

Initialize the rewards module. Must be called once after deploy before any other entry point becomes useful. Matches the initialize pattern used by tezoro-vault and the strategies — the admin's auth is captured at this call rather than at the deploy transaction, which makes deploys easier to script (no constructor args = no auth tree at deploy time) and lets the soroban-fork harness register the wasm without needing a forked auth manager for the constructor context.

fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    keeper: soroban_sdk::Address,
    router: soroban_sdk::Address,
) -> Result<(), RewardsError>
fn set_keeper(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    new_keeper: soroban_sdk::Address,
) -> Result<(), RewardsError>
fn set_router(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    new_router: soroban_sdk::Address,
) -> Result<(), RewardsError>
fn accept_admin(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
) -> Result<(), RewardsError>
fn propose_admin(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    new_admin: soroban_sdk::Address,
) -> Result<(), RewardsError>
fn upgrade_delay(env: soroban_sdk::Env) -> u64
fn cancel_upgrade(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
) -> Result<(), RewardsError>
fn execute_upgrade(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
) -> Result<(), RewardsError>
fn schedule_upgrade(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    new_wasm_hash: soroban_sdk::BytesN<32>,
) -> Result<(), RewardsError>
fn set_upgrade_delay(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    delay: u64,
) -> Result<(), RewardsError>

Imports

WebAssembly Text (WAT) ▶