Overview
A Safe Harbor agreement defines the terms under which whitehats can attack your contracts. This guide covers all configuration options.Create the Agreement
UseAgreementFactory to create your agreement:
Configure Contact Details
Provide emergency contacts for whitehats:Define Chain Scope
Specify which contracts on which chains are covered:Child Contract Scope Options
| Value | Meaning |
|---|---|
None | Only the listed contract |
ExistingOnly | Contract + children created before agreement |
All | Contract + all children (past and future) |
FutureOnly | Contract + children created after agreement |
Configure Bounty Terms
Retainable vs Return-All
- Retainable (
true): Whitehat keeps bounty from recovered funds, sends rest to recovery - Return-All (
false): Whitehat sends all funds to recovery, protocol pays bounty separately
Identity Options
| Level | Requirement |
|---|---|
Anonymous | No identity verification |
Pseudonymous | Consistent pseudonym required |
Named | Legal name verification (specify process in diligenceRequirements) |
Extend Commitment Window
Agreements must commit to terms for at least 7 days:Adopt the Agreement
Link your protocol to the agreement:Modify an Existing Agreement
You can update agreements, with restrictions during commitment:How to Request Attack Mode
Next: Submit your contracts for attack mode