Normal Behavior:
ERC20 extensions and many DeFi protocols expect token functions like mint and burnFrom to return a boolean value indicating success, or to emit a custom event. This pattern improves composability, integration with other contracts, and off-chain tooling, as it allows callers to check for success and react accordingly.
Issue:
The mint and burnFrom functions in BeatToken do not return any value or emit a custom event. This can make integration with other contracts or off-chain services less straightforward, as there is no explicit indication of success or failure beyond a revert. Some protocols and tools may expect a return value for these functions, and their absence can lead to compatibility issues or require additional workarounds.
Likelihood:
Most integrations will work, but some protocols or tools may expect a return value.
Impact:
This does not affect core functionality, but can reduce composability and integration ease.
If another contract or off-chain tool calls mint or burnFrom and expects a boolean return value, the call will revert or behave unexpectedly. For example:
Update the mint and burnFrom functions to return a boolean value indicating success, and/or emit a custom event for these actions.
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.