hats-finance / Inverter-Network-0xe47e52c4fea05e555920f1dcdcc6fb8eca103eeb

Fork of the Inverter Smart Contracts Repository
GNU Lesser General Public License v3.0
0 stars 3 forks source link

Missing event emission in `AUT_EXT_VotingRoles_v1.sol::castVote`. #27

Open hats-bug-reporter[bot] opened 5 months ago

hats-bug-reporter[bot] commented 5 months ago

Github username: @erictee2802 Twitter username: 0xEricTee Submission hash (on-chain): 0x18b06dba339b27cbac6f49d74b2d93e79fc346f83008ec2b628638eb3a569d1d Severity: low

Description: Description\

The function AUT_EXT_VotingRoles_v1.sol::castVote is missing event emission. Emitting events when these actions occur is essential for transparency and informing users about important changes. Adding events for these functions will provide users with a clear record of when the votes has been casted.

Attack Scenario\

The absence of events for these critical functions may result in a lack of transparency, making it difficult for users to track important changes in the contract. Emitting events can ensures that users are informed.

Attachments

NA

  1. Proof of Concept (PoC) File

Manual Analysis

  1. Revised Code File (Optional)
    • Consider adding event emission in AUT_EXT_VotingRoles_v1.sol::castVote.
0xmahdirostami commented 5 months ago

great, thank you