Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Invalid

Limited Minting Quantity in mint Function

Summary

The mint function allows only one SantaToken to be minted per transaction, limiting the quantity to 1e18 (1 SantaToken). This may impose constraints on the intended functionality of the token issuance process.

Vulnerability Details

The _mint function within the mint function call specifies the quantity parameter as 1e18, indicating that only one SantaToken is minted per transaction. This limitation could be intentional, but it's essential to verify whether the constraint aligns with the intended design of the SantaToken.

Impact

The restriction on minting only one SantaToken per transaction may impact scalability, user experience, or the economic model of the token, depending on the project's requirements.

Tools Used

No specific tools were used to identify this issue. Manual code review and analysis were sufficient to identify the limited minting quantity.

Recommendations

function mint(address to, uint256 quantity) external {
require(msg.sender == i_santasList, "SantaToken__NotSantasList");
_mint(to, quantity);
}

Adjust the _mint function and add a parameter for the minting quantity, allowing for more flexibility in the minting process.

Updates

Lead Judging Commences

inallhonesty Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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