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

BossBridgeToken's initial supply can be mint to anyone who deploys the contract

Summary

In L1Token.sol the constructor calls the _mint() method with no restrictions this will lead to BBT inflation.

Vulnerability Details

In L1token.sol the constructor implementation is:

constructor() ERC20("BossBridgeToken", "BBT") {
_mint(msg.sender, INITIAL_SUPPLY * 10 ** decimals());
}

it mints an amount of 10**(5+ decimals()) to whoever deploys the contract leading to a huge amount of BBT inflation .

Impact

Inflation of BBT token leading to decreasing its value.

Tools Used

Manual review

Recommendations

Check the success of safeTransferFrom() before emitting the event.

Updates

Lead Judging Commences

0xnevi Lead Judge
about 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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