(Only Owner) Claim all tokens of specified assets from the contract to a specified address.
to - The address to send the claimed assets toassets - The list of asset addresses to claimfn claim(
env: soroban_sdk::Env,
to: soroban_sdk::Address,
assets: soroban_sdk::Vec,
) -> soroban_sdk::Map
Get the owner address
fn get_owner(env: soroban_sdk::Env) -> soroban_sdk::Address
(Only Owner) Set a new owner address. This does not require auth from the new owner, so be sure to set it to a valid address that can sign future transactions.
new_owner - The new owner addressfn set_owner(env: soroban_sdk::Env, new_owner: soroban_sdk::Address)
Initialize the contract
owner - The owner addressbackstop - The backstop addressusdc - The USDC token addressfn __constructor(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
backstop: soroban_sdk::Address,
usdc: soroban_sdk::Address,
)
Fill an interest auction
from - The address to fill the auction frompool - The pool addressfill_percent - The percentage of the auction to fill (0-100)max_usdc_in - The maximum USDC amount to use for the fillfn fill_interest(
env: soroban_sdk::Env,
from: soroban_sdk::Address,
pool: soroban_sdk::Address,
fill_percent: u32,
max_usdc_in: i128,
)