Each call goes to the escrow of the chain that holds the funds (deployment values), sent by you, paying the gas. 0x0…0 is the 32-byte zero ID: the available balance.

Withdraw the available balance

withdrawOffer(0x0…0, amount), from the owner, at any time. Tokens left at your deposit address join it first with sweepDeposit(owner), which anyone can send.

Withdraw a pool

  1. requestExit(orderId) from the owner starts a one-day notice.
  2. Once exitAt(owner, orderId) has passed, withdrawOffer(orderId, amount). Before it, the call reverts with TooEarly.
  • Asking again restarts the notice; nothing ends it.
  • LaMarge stops quoting the pool when it reads the request, never funds it again, and releases it to your venue margin once its fills are delivered.
  • Your next capital preparation opens a new pool.
  • After the notice, the owner or the quote signer can also call raiseQuoteFloor(owner, orderId, sequence) to revoke signed quote sets below sequence (cancellation).

Refund a payment

After the fill’s t2, anyone can send refund(payer, 0x0…0, swap_id): the payment returns to the payer’s available balance.

Claim a payment

A delivered fill (maker_leg CLAIMED) shows its maker the secret. Before t2, anyone can send claimBatch([{owner: payer, offerId: 0x0…0, swapId: swap_id, secret}]) on the escrow of the fill’s from_venue. It credits only maker_recipient’s available balance.

Retired escrows

Funds left on a retired escrow stay there; recover them with the same calls on that contract.
  • v1 to v3 have no available balance (offer ID zero).
  • A refunded payment goes to the payer’s wallet on v1 to v4, to the payer’s available balance on v5.
  • A refunded maker lock returns to its offer: then withdrawOffer.