-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: make Token pausable #366
Conversation
feat: make Token pausable
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks solid, just one question on testing transfer from Emissions while paused
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
contracts/governance/MentoToken.sol
Outdated
|
||
/** | ||
* @title Mento Token | ||
* @author Mento Labs | ||
* @notice This contract represents the Mento Protocol Token which is a Burnable ERC20 token. | ||
*/ | ||
contract MentoToken is ERC20Burnable { | ||
contract MentoToken is Ownable, Pausable, ERC20Burnable { | ||
/// @notice The address of the emission contract that has the capability to emit new tokens. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update?
function unpause() public virtual onlyOwner { | ||
require(paused(), "MentoToken: token is not paused"); | ||
_unpause(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couldn't find tests for this function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few small things
Description
Based on recent token-related conversations we've decided we want more flexibility when it comes to the time between when we launch governance and give utility to the token, and the time when the token is transferable, i.e. tradable.
Most recent token launches have followed this approach, most notably Safe.
These changes make the token ownable and pausable.
However, even when paused the token can still be transferred by:
Other changes
N/A
Tested
Backwards compatibility
N/A
Documentation
N/A