Raisebox Faucet

First Flight #50
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Impact: low
Likelihood: medium
Invalid

Missing Burned Event in `burnFaucetTokens` Reduces Transparency

[L-02] Missing Burned Event in burnFaucetTokens Reduces Transparency
Description: The burnFaucetTokens function transfers tokens from the contract to the owner and then burns a specified amount:

_transfer(address(this), msg.sender, balanceOf(address(this)));
_burn(msg.sender, amountToBurn);

However, it does not emit any event to signal that a burn occurred. While _burn() internally emits a Transfer event to the zero address, this is not sufficient for tracking custom burn logic — especially since the tokens are first transferred to the owner before burning.

Impact:

-Reduced transparency: No clear signal that a burn was initiated by the owner.

-Harder auditing: External tools and users can’t easily track burn intent.

-Inconsistent event coverage: Other functions like mintFaucetTokens emit events, but burnFaucetTokens does not.

Recommended Mitigation:

Add a custom event to track burn actions:

event FaucetTokensBurned(address indexed burner, uint256 amount);

Emit it after the burn:

emit FaucetTokensBurned(msg.sender, amountToBurn);
Updates

Lead Judging Commences

inallhonesty Lead Judge 7 days ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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