This contract provides a mechanism to halt the execution of specific functions if a pause condition is activated.
uint256 ENTERED_SLOT
uint256 NOT_ENTERED
uint256 ENTERED
modifier noReEntrancy()
A modifier that throws a ReEntrancy custom error if the contract is entered
This modifier should be used with functions that can be entered twice
function _hasEntered() internal view returns (bool entered)
Check if the contract is already executing.
Name | Type | Description |
---|---|---|
entered | bool | A boolean representing the entered status. True if already executing, false otherwise. |
function _setEntered(uint256 entered) internal
Sets the entered status of the contract
Name | Type | Description |
---|---|---|
entered | uint256 | A boolean representing the entered status. True if already executing, false otherwise. |