Contract c1050875d64fd049bfa9a24300785513fab19e65d0e27aac97c25484d4ab33e2

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.92.0

Instances

  • CDUKL4A25OYGCJP6WCQ2JDYMNQ2LXH2HOGY4IDCECUE5IEK64VTPXDJV

Interface

XLM-02: try_transfer from contract address. The contract has no XLM balance, so try_transfer fails silently. The parent catches the error and emits a fake "transfer" event that mimics the SAC event format. Transaction succeeds (txSUCCESS).

fn fake_transfer(
    env: soroban_sdk::Env,
    token_addr: soroban_sdk::Address,
    to: soroban_sdk::Address,
    amount: i128,
) -> bool

XLM-01: Regular transfer from contract address. The contract has no XLM balance, so transfer() panics and the entire transaction fails (txFAILED). Diagnostic events still contain the attempted SAC transfer call trace.

fn failed_transfer(
    env: soroban_sdk::Env,
    token_addr: soroban_sdk::Address,
    to: soroban_sdk::Address,
    amount: i128,
)

Imports

WebAssembly Text (WAT) ▶