Contract 7fd53bcbca859eb5ed9a08848d445db337bf49e090bcacaa219f8693b3cfa02d

← Back to Index 📥 Download WASM

Meta

cliver 23.4.0#fc6745f3d4e90d1ef68d14d0ae947404768fa5c0
rssdkver 23.1.0#7456be9d91fe1f4cb070fc2732bac78244ce6c3f
rsver 1.92.0

Instances

  • CBWLFA7OJTKKXJPQ7OVULVHZCXSNQCCZWC7F6HDP6AVLPA3JKEBDFD5T

Interface

(Only Owner) Claim all tokens of specified assets from the contract to a specified address.

Arguments

  • to - The address to send the claimed assets to
  • assets - The list of asset addresses to claim

Returns

  • Map of asset address to claimed amount
fn claim(
    env: soroban_sdk::Env,
    to: soroban_sdk::Address,
    assets: soroban_sdk::Vec,
) -> soroban_sdk::Map

Get the owner address

Returns

  • 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.

Arguments

  • new_owner - The new owner address
fn set_owner(env: soroban_sdk::Env, new_owner: soroban_sdk::Address)

Initialize the contract

Arguments

  • owner - The owner address
  • backstop - The backstop address
  • usdc - The USDC token address
fn __constructor(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    backstop: soroban_sdk::Address,
    usdc: soroban_sdk::Address,
)

Fill an interest auction

Arguments

  • from - The address to fill the auction from
  • pool - The pool address
  • fill_percent - The percentage of the auction to fill (0-100)
  • max_usdc_in - The maximum USDC amount to use for the fill
fn fill_interest(
    env: soroban_sdk::Env,
    from: soroban_sdk::Address,
    pool: soroban_sdk::Address,
    fill_percent: u32,
    max_usdc_in: i128,
)

Imports

WebAssembly Text (WAT) ▶