Hooks Trampoline
A dedicated trampoline contract for executing user-specified hooks in CoW Protocol settlements safely and efficiently
Why Hooks Trampoline?
Hooks Trampoline protects CoW Protocol settlements from malicious or poorly configured user hooks
Security Isolation
Executes hooks from an unprivileged context, preventing malicious hooks from accessing settlement contract funds or state
Gas Protection
Enforces gas limits on hook execution to prevent INVALID opcodes from consuming excessive gas and making settlements expensive
Revert Tolerance
Allows individual hooks to revert without failing the entire settlement, preventing DoS attacks on other orders
Settlement Access Control
Only accepts calls from the CoW Protocol settlement contract, allowing hooks to verify they’re part of a valid settlement
Quick Start
Get started with Hooks Trampoline in minutes
Explore the Documentation
Learn more about Hooks Trampoline’s architecture and how to use it effectively
How It Works
Security Model
Gas Management
Testing
Ready to integrate Hooks Trampoline?
Follow our installation guide to deploy and integrate Hooks Trampoline into your CoW Protocol settlement workflow
Get Started