Skip to main content

Overview

A Safe Harbor agreement defines the terms under which whitehats can attack your contracts. This guide covers all configuration options.

Create the Agreement

Use AgreementFactory 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

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

Extend Commitment Window

Agreements must commit to terms for at least 7 days:
During the commitment window, you cannot make unfavorable changes to whitehats.

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