The DebtToken::mint function emits duplicate Transfer events, violating ERC20 standards and causing unnecessary gas costs. While both events contain identical data, this redundancy could confuse off-chain monitoring systems.
In DebtToken.sol, the mint function emits the same Transfer event twice:
Each mint operation produces two identical events:
The OpenZeppelin ERC20 implementation already emits a Transfer event in _mint, making the explicit emission redundant.
Gas Impact:
Unnecessary gas cost for emitting duplicate events
Each redundant event costs approximately 1,500 gas
Standard Compliance:
Violates ERC20 standard expectations of single event per transfer
May cause confusion in protocol documentation and auditing
Minor Integration Impact:
Event listeners may need to deduplicate events
Slightly increased indexing storage requirements
Manual review
Remove the redundant Transfer event in DebtToken::mint
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.