From 1b9a4c845f9580ceb397d0151815ab07ebbb0138 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sat, 23 Nov 2024 12:27:34 -0600 Subject: [PATCH] chore: clean up fstmove gov --- src/token/fstMOVE.sol | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/token/fstMOVE.sol b/src/token/fstMOVE.sol index 9035488..2dbe932 100644 --- a/src/token/fstMOVE.sol +++ b/src/token/fstMOVE.sol @@ -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 *