Initialize the backstop manager
fn __constructor(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
manager: soroban_sdk::Address,
emitter: soroban_sdk::Address,
backstop_token: soroban_sdk::Address,
backstop: soroban_sdk::Address,
pool: soroban_sdk::Address,
)
(Only Owner) Transfer tokens from the manager contract to another address
token - The address of the token to transferto - The address to transfer the tokens toamount - The amount of tokens to transferfn transfer_token(
env: soroban_sdk::Env,
token: soroban_sdk::Address,
to: soroban_sdk::Address,
amount: i128,
)
(Only Owner) Set the manager for the contract
manager - The address of the managerfn set_manager(env: soroban_sdk::Env, manager: soroban_sdk::Address)
amount - The amount of tokens to depositmax_amounts_in - The maximum amounts of tokens to swap infn deposit_swap(
env: soroban_sdk::Env,
amount: i128,
max_amounts_in: soroban_sdk::Vec,
)
(Manager) Claim backstop deposit emissions from a list of pools for the contract
Returns the amount of BLND emissions claimed
min_lp_tokens_out - The minimum amount of backstop tokens to mint with emissionsIf an invalid pool address is included
fn claim(env: soroban_sdk::Env, min_lp_tokens_out: i128) -> i128
(Manager) Queue deposited pool shares from the contract for withdraw from a backstop of a pool
Returns the created queue for withdrawal
amount - The amount of shares to queue for withdrawfn queue_withdrawal(env: soroban_sdk::Env, amount: i128)
(Manager) Dequeue a currently queued pool share withdraw for the contract from the backstop of a pool
amount - The amount of shares to dequeuefn dequeue_withdrawal(env: soroban_sdk::Env, amount: i128)
(Manager) Withdraw shares from the contract's withdraw queue for a backstop of a pool
Returns the amount of tokens returned
amount - The amount of shares to withdrawfn withdraw(env: soroban_sdk::Env, amount: i128) -> i128