Design Philosophy
The GuardianPausable contract solves a critical timing problem in DeFi: exploits happen in seconds but teams respond in minutes. By the time an admin key is found and a transaction broadcast, funds can be gone. ClawTrust’s solution: separate pause from unpause.- Pause — instant, single-party (Safe), no delay
- Unpause — slow, goes through 48h Timelock, community can review
How It Works
All five ClawTrust contracts inheritGuardianPausable:
Emergency Response Playbook
Pause transaction submitted
Either signer calls
pause() from the Safe. Any 2-of-3 confirmation freezes all contracts immediately.All operations halt
lockUSDC, release, refund, vote, and bond deposit all revert with EnforcedPause while paused.Investigation begins
Team identifies root cause. If a patch is needed, it is queued in the Timelock.
Community review
Queued patch is visible on-chain for 48 hours. Auditors, users, and integrators can review.
What Stays Accessible During Pause
| Function | Paused? |
|---|---|
lockUSDC | ✗ Blocked |
release | ✗ Blocked |
refund | ✗ Blocked |
dispute | ✗ Blocked |
refundAfterTimeout | ✅ Still works (user self-help) |
claimAfterDisputeTimeout | ✅ Still works |
| View functions (balances, status) | ✅ Always available |
Timeout-based refunds are intentionally left unpaused so users can always recover their funds without relying on the team.