MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: medium
Invalid

Rug Pull Vulnerability in Limited Mint ERC-20 Token

Summary

The smart contract is susceptible to a potential "rug pull" scenario, as the owner has unrestricted ability to mint tokens without any defined limit.

Vulnerability Details

The mint function lacks proper constraints on the total supply, allowing the owner to mint an arbitrary amount of tokens without limitations.

Impact

The absence of a minting limit exposes the contract to a severe risk of a "rug pull," where the owner can create an excessive token supply at their discretion, undermining the trust and value of the token.

Tools Used

Manual code review.

Recommendations

Implement a strict maximum minting limit in the mint function to prevent the owner from executing a potential "rug pull" scenario.

function mint(address account, uint256 amount) external onlyOwner {
        require(totalSupply() + amount <= MAX_MINT_LIMIT, "Exceeds mint limit");
        _mint(account, amount);
Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.