Contract cbacbbb14472fd4d9a0c75ce4a92c60922430eb931e4e6906986edf4778171c1

← Back to Index 📥 Download WASM

Meta

rssdkver 23.1.0#7456be9d91fe1f4cb070fc2732bac78244ce6c3f
rsver 1.92.0

Instances

  • CCFY34K5HWCOZPLYSKKJGQ75PK2PJSKQ4XNRFOZHNEVWKS2NCOBDWN6C

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) ▶