What is Safe Harbor?
Safe Harbor is a legal framework that protects whitehats who attack contracts on BattleChain. When a protocol adopts a Safe Harbor agreement and their contracts enter attack mode, they commit to not pursuing legal action against whitehats who follow the rules.What’s Protected
When attacking contracts inUNDER_ATTACK or PROMOTION_REQUESTED state:
- Exploiting vulnerabilities in in-scope contracts
- Extracting funds from vulnerable contracts
- Keeping your bounty percentage (up to the cap)
- Acting without prior coordination
- Remaining anonymous (if allowed by terms)
What’s NOT Protected
Safe Harbor does NOT cover:- Attacking
PRODUCTIONcontracts - Attacking contracts outside the agreement’s scope
- Keeping more than your bounty entitlement
- Ignoring identity requirements
- Causing harm beyond the exploit itself
The Agreement Structure
Every Safe Harbor agreement includes:Commitment Window
Protocols commit to not changing terms unfavorably during a commitment window:- Reduce bounty percentage or caps
- Remove contracts from scope
- Make identity requirements stricter
- Change from retainable to return-all
Verifying Protection
Before attacking, always verify:The Agreement Document
TheagreementURI points to the full legal document:
If Something Goes Wrong
Protocol Claims Violation
- Document your compliance (transactions, calculations)
- Show you met all requirements
- Involve neutral parties if needed
Terms Changed Unfavorably
- Check if changes were during commitment window
- Archive evidence of state at attack time
- Escalate to DAO for arbitration