Loading...
A pausable token gives the contract owner the ability to freeze all token transfers globally. When paused, no tokens can be transferred, minted, or burned until the contract is unpaused. This is an essential safety mechanism for responding to security incidents.
The pausable extension adds `pause()` and `unpause()` functions restricted to the contract owner. When paused, all calls to `transfer`, `transferFrom`, `mint`, and `burn` will revert. The contract emits `Paused` and `Unpaused` events for transparency.
function pause() public onlyOwner {
_pause();
}
function unpause() public onlyOwner {
_unpause();
}
// All transfers check: require(!paused())Immediately freeze all transfers if a vulnerability or exploit is discovered.
Pause transfers during a planned migration to a new contract version.
Freeze transfers if required by regulatory action or legal proceedings.
Temporarily pause trading during an initial distribution or airdrop period.
Deploy a secure, verified smart contract with the Pausable feature on Ethereum in minutes. No coding required.
Create a Pausable Token