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.
Security Best Practices
Token Approval Safety
Approve only the exact amount needed for your orders rather than unlimited amounts. For TWAP orders specifically, approve preciselyn * partSellAmount.
Safe Configuration Requirements
Proper setup demands three critical steps:- Configure the fallback handler to the
ExtensibleFallbackHandleraddress - Set the domain verifier for GPv2Settlement
- Test with a small order before full deployment
Order Parameter Validation
Ensure:- Official handler addresses are used (not custom or unverified ones)
- Each order has a unique salt value to prevent hash collisions
- TWAP parameters meet specific constraints (e.g.,
n > 1, span must not exceedt)
Merkle Tree and Proof Management
Secure storage of merkle proofs is essential. Redundant backup systems are recommended for proof storage.Monitoring and Emergency Response
Post-creation oversight involves:- Track execution on CoW Explorer
- Verify watchtower pickup of your orders
- If issues arise:
- Cancel problematic orders immediately
- Revoke token approvals if security concerns exist