Skip to main content

Overview

Claiming is how makers (limit order placers) settle their filled orders and receive their proceeds. Unlike takers who receive tokens immediately when executing market orders, makers must explicitly call claim() to:
  • Receive the tokens they bought
  • Unlock their remaining collateral
  • Trigger fee distribution (to protocol and referrer)

Maker vs Taker settlement

The system handles settlement differently for makers and takers:

When to claim

You should claim after your maker orders have been filled (fully or partially):
  1. After a taker fills your order: When someone executes a market order that matches your limit order
  2. Partial fills: You can claim partially filled orders to receive proceeds from the filled portion
  3. Before canceling: Claim any filled portions before canceling the remainder

The claiming flow

Step 1: Place limit order (make)

What happens:
  • Your quote currency (e.g., USDC) is locked in the vault
  • Order is added to the book at your specified price
  • Referrer (if specified) is stored with the order for fee sharing
  • You receive an OrderId for tracking

Step 2: Order gets filled (take)

When a taker matches your order:
  • Taker receives their tokens immediately
  • Protocol fee recipient and taker’s referrer (if any) receive fees immediately
  • Your order becomes claimable
  • You have not received anything yet

Step 3: Claim your proceeds

What happens:
  1. Calculate your claimable amount and fees
  2. Unlock your collateral (minus maker fee)
  3. Receive the base currency you bought in your vault
  4. Distribute maker fees to protocol fee recipient and your referrer (if specified)

Example: complete trade lifecycle

Setup

Phase 1: Alice makes order

Phase 2: Bob takes order (immediate settlement)

Phase 3: Alice claims (deferred settlement)

Claim checklist

Before claiming:
  • ✅ Your order has been filled (partially or fully)
  • ✅ You have the OrderId from when you placed the order
To claim:
After claiming:
  • ✅ Check your vault balance for the base currency you bought
  • ✅ Your locked collateral is now unlocked (minus fees)
  • ✅ Fee distribution completed (to protocol and your referrer if specified)

Monitoring claimable orders

To check if you have claimable orders, query the subgraph or contract:

Gas optimization

Claiming costs gas, so consider:
  • Batch claims: Claim multiple orders in one transaction
  • Timing: Wait for multiple fills before claiming
  • Trade-off: Balance gas costs vs. having access to your tokens

Security considerations

  • Only you can claim: Orders are tied to your address; others cannot claim your proceeds
  • No time limit: Claimable orders never expire—claim whenever convenient
  • Locked until claimed: Your locked collateral remains locked until you claim or cancel
  • Fee calculation: Maker fees are taken from your locked collateral, not from proceeds

See also