Smart Contracts
Pausable
Smart contract feature allowing admin to pause functions to prevent exploitation.
Last Updated
2026-03-29
Related Concepts
What is Pausable?
Pausable is a smart contract security pattern that lets an authorized admin temporarily freeze specific functions during an emergency halting ongoing exploits or bugs to protect user funds.
How does Pausable work?
- A
pausedboolean state variable is added to the contract. - Critical functions (withdraw, transfer) use a modifier that reverts if
pausedis true. - An authorized address (multisig or DAO) can call
pause()andunpause(). - During a pause, all protected functions revert automatically.
Why does Pausable matter?
It provides a critical defense against zero-day vulnerabilities missed in audits. While it introduces some centralization, most users accept this tradeoff to prevent catastrophic losses.
Key features of Pausable
- Immediate halt of sensitive functions
- Authorized admin required to trigger
- Transparent pause status visible to all
- Standard pattern from OpenZeppelin
Examples of Pausable
Tether (USDT) uses pausable to freeze tokens linked to criminal activity. A DeFi protocol detecting a bug in its rewards logic might pause for 24 hours while deploying a fix.
