Skip to content

Commit

Permalink
feat: include setActive on interface
Browse files Browse the repository at this point in the history
  • Loading branch information
JGcarv committed Jun 7, 2024
1 parent 89bc643 commit e672439
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/Migrator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ contract Migrator is IMigrator {
require(ERC20Helper.transfer(newToken, owner_, amount_ * tokenSplitScalar), "M:M:TRANSFER_FAILED");
}

function setActive(bool active_) external {
function setActive(bool active_) external override {
require(
msg.sender == IGlobalsLike(globals).governor() ||
msg.sender == IGlobalsLike(globals).operationalAdmin(),
Expand Down
6 changes: 6 additions & 0 deletions contracts/interfaces/IMigrator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ interface IMigrator {
*/
function migrate(address owner_, uint256 amount_) external;

/**
* @dev Set the migrator to active or inactive.
* @param active_ True if migrations are active.
*/
function setActive(bool active_) external;

/**
* @dev Get the scalar value for token split.
* @return tokenSplitScalar_ The scalar value for token split.
Expand Down

0 comments on commit e672439

Please sign in to comment.