Beginner FriendlyFoundryBridge
100 EXP
View results
Submission Details
Severity: medium
Invalid

Lack of MAX_SUPPLY Leading to Potential Unlimited Minting

Vulnerability Details

In the L1Token contract, there is an INITIAL_SUPPLY defined, but no corresponding MAX_SUPPLY is set. This absence poses a risk of unlimited minting of tokens, as there is no hard cap to restrict the total supply of tokens. The lack of a maximum supply limit could lead to potential misuse or unintended inflation of the token supply.

contract L1Token is ERC20 {
uint256 private constant INITIAL_SUPPLY = 1_000_000;
...
}

Impact

The absence of a MAX_SUPPLY can lead to unchecked minting of tokens, posing a significant risk of token devaluation and inflation. This could undermine the token's value and the project's economic stability.

Recommendations

Implement a MAX_SUPPLY to set a hard cap on the total token supply. This will provide a safeguard against unlimited minting and help maintain the token's value and scarcity. Additionally, ensure that any minting function checks against this maximum supply to prevent excess issuance of tokens.

Updates

Lead Judging Commences

0xnevi Lead Judge
over 1 year ago
0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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