Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (44 sloc) 1.25 KB
pragma solidity 0.4.25;
import "./Owned.sol";
/**
* @title DappMaintenance contract.
* @dev When the Synthetix system is on maintenance (upgrade, release...etc) the dApps also need
* to be put on maintenance so no transactions can be done. The DappMaintenance contract is here to keep a state of
* the dApps which indicates if yes or no, they should be up or down.
*/
contract DappMaintenance is Owned {
bool public isPausedMintr = false;
bool public isPausedSX = false;
/**
* @dev Constructor
*/
constructor(address _owner)
Owned(_owner)
public
{}
function setMaintenanceModeAll(bool isPaused)
external
onlyOwner
{
isPausedMintr = isPaused;
isPausedSX = isPaused;
emit MintrMaintenance(isPaused);
emit SXMaintenance(isPaused);
}
function setMaintenanceModeMintr(bool isPaused)
external
onlyOwner
{
isPausedMintr = isPaused;
emit MintrMaintenance(isPausedMintr);
}
function setMaintenanceModeSX(bool isPaused)
external
onlyOwner
{
isPausedSX = isPaused;
emit SXMaintenance(isPausedSX);
}
event MintrMaintenance(bool isPaused);
event SXMaintenance(bool isPaused);
}
You can’t perform that action at this time.