Pausing
The pausing mechanism is a crucial risk management feature in the FBTC project. It allows authorized parties to temporarily halt certain operations within the smart contract to prevent further damage in the event of a detected vulnerability or security breach. This document provides an in-depth look at the pausing mechanism implemented in FBTC, its purpose, functionality, and management processes.
Purpose
The primary purposes of the pausing mechanism are:
Risk Mitigation: To quickly halt operations in case of a detected security threat or vulnerability.
Protection of User Funds: To prevent unauthorized or malicious activities that could compromise user assets.
Operational Stability: To provide a controlled environment for addressing issues without affecting the entire system.
Functionality
Pausing Operations
The pausing mechanism in FBTC allows for the suspension of critical functions such as minting, burning, and cross-chain transfers. When the contract is paused, these functions cannot be executed until the contract is unpaused.
Implementation
FBTC employs the OpenZeppelin Pausable
contract module to integrate the pausing mechanism. This module provides modifiers that can be applied to functions to restrict their execution when the contract is paused.
Management Processes
Pausing the Contract
Detection of Threat: Upon detecting a potential security threat or vulnerability, the authorized pauser evaluates the risk.
Initiate Pause: The pauser calls the
pause
function to suspend critical operations.Notification: All relevant stakeholders are notified of the pause, and an investigation begins to address the issue.
Unpausing the Contract
Issue Resolution: The detected issue or threat is thoroughly investigated and resolved.
Security Assessment: A comprehensive security assessment is conducted to ensure the system's integrity.
Initiate Unpause: The pauser calls the
unpause
function to resume normal operations.Notification: All relevant stakeholders are notified that the contract has been unpaused and normal operations have resumed.
Last updated