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>