31226 - [SC - Insight] Missing Revert Message in require statement lea...
Last updated
Was this helpful?
Last updated
Was this helpful?
Submitted on May 15th 2024 at 08:49:18 UTC by @Wizard for
Report ID: #31226
Report type: Smart Contract
Report severity: Insight
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Bribe.sol
Impacts:
missing revert message leading to difficulty in debugging
require statement in the deposit
, withdraw
, and restVoting
functions does not include a revert message.
The require statement in the deposit
, withdraw
, and restVoting
functions does not include a revert message, this would make it harder to debug and understand why a transaction is reverting for both developers and protocol users.
the lack of feedback on reverting functions would make it harder to trace back the errors and know where the execution is going wrong, this doesn't have a direct security impact on the contract, but it can make things easier to debug as those three functions are important functions in the protocol.
https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Bribe.sol?utm_source=immunefi#L303
https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Bribe.sol?utm_source=immunefi#L319
https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Bribe.sol?utm_source=immunefi#L332