Contract 07d7c7279a6d6eac94659da20a0365d1565d671c704fe374d26424cf744cab89

← Back to Index 📥 Download WASM

Meta

cliver 27.1.0#8e402ea28202950b272fbabc34caad4d2f64fe87
rssdkver 25.1.1#94c2a3b3a5ded6b9cf9cef0c207bf8804f3eb294
rsver 1.97.1

Instances

  • CDW67DILH7PX6YBCOERXL2TQAM4WNUUEMXA3PSRY5GFTGHTSTL56LAFC

Interface

Mint the bid and win the auction in one invocation.

  • filler — whose money moves and who receives the lot. Must authorize; this is the ONLY principal the call can act for.
  • usdc — the SAC of the asset deposited into the Comet pool (mainnet USDC CCW67TSZ…). Named separately from the lot asset because they only happen to coincide.
  • usdc_in — units to deposit single-sided.
  • max_usdc — hard ceiling on what the join may actually pull. Checked against the measured balance delta, so a Comet that took more than it was asked for reverts the whole transaction.
  • comet — the Comet BLND:USDC pool. A Comet pool IS its own LP share token (it implements the token interface), so this address is used both as the join target and as the LP balance oracle.
  • min_lp_out — slippage floor on the join, doing three jobs: it is passed to Comet as its own min_pool_amount_out, re-checked here against the measured LP delta, and used verbatim as the LP allowance granted to the backstop — so it must be a
fn fill_interest(
    env: soroban_sdk::Env,
    filler: soroban_sdk::Address,
    usdc: soroban_sdk::Address,
    usdc_in: i128,
    max_usdc: i128,
    comet: soroban_sdk::Address,
    min_lp_out: i128,
    max_lp_residual: i128,
    pool: soroban_sdk::Address,
    backstop: soroban_sdk::Address,
    auction_user: soroban_sdk::Address,
    lot_asset: soroban_sdk::Address,
    min_lot_out: i128,
) -> i128

Imports

WebAssembly Text (WAT) ▶