DeFiFoundry
60,000 USDC
View results
Submission Details
Severity: low
Invalid

Functions "USDToken::mint" and "USDToken::burn" do not emit events.

Summary

Functions "USDToken::mint" and "USDToken::burn" are external functions that change the blockchain's state and do not emit an event when it is called.

Vulnerability Details

The functions "USDToken::mint" and "USDToken::burn" are external functions that alter the blockchain state and include critical operations minting and burning tokens. If it does not emit an event, tracking how many tokens are minted and burnt might be difficult. Emitting an event is essential for maintaining transparency and ensuring accurate monitoring of these updates.

Impact

No real impact on the contract, it might just be impossible to track updates of the keeper forwarder.

Tools Used

Manual Review

Recommendations

+ event TokenMinted(address to, uint256 amount);
function mint(address to, uint256 amount) external onlyOwner {
_requireAmountNotZero(amount);
_mint(to, amount);
+ emit TokenMinted(to, amount);
}
+ event TokenBurns(uint256 amount);
function burn(uint256 amount) external {
_requireAmountNotZero(amount);
_burn(msg.sender, amount);
+ emit Token(msg.sender, amount);
}

Updates

Lead Judging Commences

inallhonesty Lead Judge
10 months ago
inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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