Skip to main content

Signature

IB20.sol

Description

Pauses each feature in features. The call is additive: features already paused remain paused, and duplicates within the array are silent no-ops. Emits Paused(updater, features) with the exact array passed. While a feature is paused, the operations it gates revert ContractPaused(feature).

Parameters

Reverts

  • AccessControlUnauthorizedAccount(account, neededRole): caller does not hold PAUSE_ROLE.
  • EmptyFeatureSet(): features.length == 0.

Access Control

PAUSE_ROLE gates this call. PAUSE_ROLE and UNPAUSE_ROLE are separate roles, so the account that pauses need not be the account that resumes.

Policy Interaction

No direct policy interaction.

Pausable Features

The ABI encodes PausableFeature as uint8, in enum order (TRANSFER = 0, MINT = 1, BURN = 2, SEIZE = 3). B20Constants.ALL_FEATURES_PAUSED (15) is the bitmask with all four set.

Example

Usage Example