Skip to content
docs

LayerswapFunding

LayerswapFunding = "depository" | "wallet" | "deposit_address"

Defined in: protocol-swap2-layerswap/src/config.ts:77

How the source leg is funded, per source family:

  • EVM: the Depository (use_depository), pinned above.
  • Solana: the wallet flow — Layerswap’s serialized transfer with the swap’s sequence number as a top-level memo. The deposit-address flow costs a sweep (≈ $0.36 on 100 USDC, 2026-12-01).
  • TON: the wallet flow — a transfer (or jetton transfer) with the swap’s comment. TON has no deposit address.
  • Tron: the wallet flow — a TRC-20 transfer with the memo in raw_data.data. The deposit-address flow costs ≈ $4 a swap (2026-12-01).
  • Bitcoin: a deposit address minted for the swap (use_deposit_address): the wallet flow needs an OP_RETURN output the Bitcoin account does not write; the address costs ≈ 0.03 % (2026-12-01).