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 callclaim() 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:| Aspect | Maker (Limit Order) | Taker (Market Order) |
|---|---|---|
| Settlement timing | Deferred—on claim | Immediate—on take |
| Receives proceeds | When calling claim() | Immediately during take() |
| Fee distribution | On claim | Immediately during take |
| Must call claim | Yes ✅ | No ❌ |
When to claim
You should claim after your maker orders have been filled (fully or partially):- After a taker fills your order: When someone executes a market order that matches your limit order
- Partial fills: You can claim partially filled orders to receive proceeds from the filled portion
- Before canceling: Claim any filled portions before canceling the remainder
The claiming flow
Step 1: Place limit order (make)
- 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
OrderIdfor 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
- Calculate your claimable amount and fees
- Unlock your collateral (minus maker fee)
- Receive the base currency you bought in your vault
- 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
OrderIdfrom when you placed the order
- ✅ 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
- Vaults & deposits - vault mechanics and collateral
- Referrers - understanding the referrer fee system
- Controller - the main trading interface
- Claim orders guide - how to claim filled orders