Skip to content

Latest commit

 

History

History
328 lines (285 loc) · 9.74 KB

PausableOz.md

File metadata and controls

328 lines (285 loc) · 9.74 KB

PausableOz.sol

View Source: contracts/openzeppelin/PausableOz.sol

↗ Extends: Ownable ↘ Derived Contracts: ILoanTokenLogicModules, LoanTokenLogicBeacon

PausableOz contract

Contract Members

Constants & Variables

bool internal _paused;

Events

event Paused(address  account);
event Unpaused(address  account);

Modifiers

whenNotPaused

Modifier to make a function callable only when the contract is not paused.

modifier whenNotPaused() internal

whenPaused

Modifier to make a function callable only when the contract is paused.

modifier whenPaused() internal

Functions


constructor

function () internal nonpayable
Source Code
constructor() internal {}

paused

Returns true if the contract is paused, and false otherwise.

function paused() public view
returns(bool)
Source Code
function paused() public view returns (bool) {
        return _paused;
    }

pause

Called by the owner to pause, triggers stopped state.

function pause() public nonpayable onlyOwner whenNotPaused 
Source Code
function pause() public onlyOwner whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

unpause

Called by the owner to unpause, returns to normal state.

function unpause() public nonpayable onlyOwner whenPaused 
Source Code
function unpause() public onlyOwner whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }

Contracts