Documentation Index
Fetch the complete documentation index at: https://cowswap-mintlify-docs-audit-1775035615.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Good After Time Orders
Good After Time (GAT) orders are programmatic trades that remain dormant until theirstartTime is reached, functioning as scheduled executions with optional price validation.
Core Mechanics
Time-Based Activation
Orders activate only after a specified timestamp and expire at anendTime. The system returns PollTryAtEpoch(startTime) if execution is attempted too early.
Balance Protection
TheminSellBalance parameter ensures sufficient token availability, preventing execution after funds have been withdrawn or the order has already filled.
Dynamic Buy Amounts
The off-chain input accepts varyingbuyAmount values, meaning different buyAmount values create different orderUids, allowing multiple fills of the same order.
Price Validation
Optional Milkman price checkers validate that provided buy amounts meet minimum requirements. The acceptable minimum calculates as:Key Parameters
| Parameter | Description |
|---|---|
sellToken / buyToken | Token pair for the trade |
receiver | Destination address for purchased tokens |
startTime / endTime | UNIX timestamps controlling order validity window |
allowPartialFill | Whether solvers can execute partial quantities |
priceCheckerPayload | ABI-encoded validation rules (optional) |
minSellBalance | Minimum balance required to execute |
Order Structure
The implementation usesGPv2Order.Data structures integrated with ComposableCoW’s programmatic order framework, enabling sophisticated DeFi automation patterns with time-based constraints and price protections.