Skip to content

Commit

Permalink
chore: clean up fstmove gov
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonDmoney committed Nov 23, 2024
1 parent 981cfe0 commit 1b9a4c8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/token/fstMOVE.sol
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,19 @@ contract fstMOVE is Context, IERC20, IERC20Metadata, IERC20Errors {
* @dev Destruct sets all balanceOf() calls to return 0 to prevent user wallet cloggage
*/
function destruct() external {
require(msg.sender == _gov);
destructed = true;
}

/**
* @dev Change gov role
*/
function _changeGov(address newGov) external {
require(msg.sender == _gov);

_gov = newGov;
}

/**
* Fulfill IERC20 interface
*
Expand Down

0 comments on commit 1b9a4c8

Please sign in to comment.