Skip to content

Comments

Split BurnMintERC20 into two tokens#361

Draft
RensR wants to merge 5 commits intodevelopfrom
upgrade-tokens
Draft

Split BurnMintERC20 into two tokens#361
RensR wants to merge 5 commits intodevelopfrom
upgrade-tokens

Conversation

@RensR
Copy link
Collaborator

@RensR RensR commented Feb 17, 2026

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 17, 2026

✅ API Diff Results - No breaking changes


📄 View full apidiff report

@github-actions
Copy link
Contributor

Static analysis results are available

Hey @RensR, you can view Slither reports in the job summary here or download them as artifact here.
Please check them before merging and make sure you have addressed all issues.

Copy link

@crispymangoes crispymangoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple small things but looking good!

}

/// @dev This check applies to transfer, minting, and burning.
/// @dev Disallows approving for address(this).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit stale comment

/// @dev Increases the total supply.
function mint(address account, uint256 amount) external virtual override onlyRole(MINTER_ROLE) {
function mint(address account, uint256 amount) public virtual override onlyRole(MINTER_ROLE) {
if (account == address(this)) revert InvalidRecipient(account);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is redundant.

Function calls ERC20::_mint which calls BaseERC20::_update which reverts if to == address(this) the same check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants