contract Pausable is Ownable {
    bool public paused;

    modifier ifNotPaused {
        require(!paused, "Contract is paused");
        _;
    }

    modifier ifPaused {
        require(paused, "Contract is not paused");
        _;
    }

    // Called by the owner on emergency, triggers paused state
    function pause() external onlyOwner {
        paused = true;
    }

    // Called by the owner on end of emergency, returns to normal state
    function resume() external onlyOwner ifPaused {
        paused = false;
    }
}
function resume() external onlyOwner ifPaused {
    paused = false;
}

// Called by the owner on end of emergency, returns to normal state