Skip to content

Commit

Permalink
refactor: move mint and burn to Token
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Oct 22, 2024
1 parent 3fa15cb commit 5910fa5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
8 changes: 0 additions & 8 deletions src/MorphoTokenEthereum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ contract MorphoTokenEthereum is Token {
/// @dev The symbol of the token.
string internal constant SYMBOL = "MORPHO";

/* EVENTS */

/// @dev Emitted whenever tokens are minted for an account.
event Mint(address indexed account, uint256 amount);

/// @dev Emitted whenever tokens are burned from an account.
event Burn(address indexed account, uint256 amount);

/* ERRORS */

/// @notice Reverts if the address is the zero address.
Expand Down
8 changes: 0 additions & 8 deletions src/MorphoTokenOptimism.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ contract MorphoTokenOptimism is Token, IOptimismMintableERC20 {
address _bridge;
}

/* EVENTS */

/// @dev Emitted whenever tokens are minted for an account.
event Mint(address indexed account, uint256 amount);

/// @dev Emitted whenever tokens are burned from an account.
event Burn(address indexed account, uint256 amount);

/* ERRORS */

/// @notice Reverts if the address is the zero address.
Expand Down
6 changes: 6 additions & 0 deletions src/Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ abstract contract Token is
/// @dev Emitted when a delegatee's delegated voting power changes.
event DelegatedVotingPowerChanged(address indexed delegatee, uint256 oldVotes, uint256 newVotes);

/// @dev Emitted whenever tokens are minted for an account.
event Mint(address indexed account, uint256 amount);

/// @dev Emitted whenever tokens are burned from an account.
event Burn(address indexed account, uint256 amount);

/* CONSTRUCTOR */

/// @dev Disables initializers for the implementation contract.
Expand Down

0 comments on commit 5910fa5

Please sign in to comment.