Skip to content

Commit

Permalink
feat(t2cr): add governance mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
eccentricexit committed Nov 19, 2018
1 parent 1c3bc3e commit e3a6758
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions contracts/standard/permission/ArbitrableTokenList.sol
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,36 @@ contract ArbitrableTokenList is PermissionInterface, Arbitrable {
emit MetaEvidence(0, _metaEvidence);
}

// ************************ //
// * Governance * //
// ************************ //

/** @dev Changes the `timeToChallenge` storage variable.
* @param _timeToChallenge The new `timeToChallenge` storage variable.
*/
function changeTimeToChallenge(uint _timeToChallenge) external onlyGovernor {
timeToChallenge = _timeToChallenge;
}

/** @dev Changes the `challengeReward` storage variable.
* @param _challengeReward The new `challengeReward` storage variable.
*/
function changeChallengeReward(uint _challengeReward) external onlyGovernor {
challengeReward = _challengeReward;
}

/** @dev Changes the `governor` storage variable.
* @param _governor The new `governor` storage variable.
*/
function changeGovernor(address _governor) external onlyGovernor {
governor = _governor;
}

/** @dev Changes the `arbitrationFeesWaitingTime` storage variable.
* @param _arbitrationFeesWaitingTime The new `_arbitrationFeesWaitingTime` storage variable.
*/
function changeArbitrationFeesWaitingTime(uint _arbitrationFeesWaitingTime) external onlyGovernor {
arbitrationFeesWaitingTime = _arbitrationFeesWaitingTime;
}

}

0 comments on commit e3a6758

Please sign in to comment.